IT. Expert System.

Android Reference

ChunkHandler


org.apache.harmony.dalvik.ddmc

Class ChunkHandler

    • Field Detail

      • CHUNK_ORDER

        public static final ByteOrder CHUNK_ORDER
      • CHUNK_FAIL

        public static final int CHUNK_FAIL
    • Constructor Detail

      • ChunkHandler

        public ChunkHandler()
    • Method Detail

      • connected

        public abstract void connected()
        Called when the DDM server connects. The handler is allowed to send messages to the server.
      • disconnected

        public abstract void disconnected()
        Called when the DDM server disconnects. Can be used to disable periodic transmissions or clean up saved state.
      • handleChunk

        public abstract Chunk handleChunk(Chunk request)
        Handle a single chunk of data. "request" includes the type and the chunk payload. Returns a response in a Chunk.
      • createFailChunk

        public static Chunk createFailChunk(int errorCode,
                            String msg)
        Create a FAIL chunk. The "handleChunk" methods can use this to return an error message when they are not able to process a chunk.
      • wrapChunk

        public static ByteBuffer wrapChunk(Chunk request)
        Utility function to wrap a ByteBuffer around a Chunk.
      • getString

        public static String getString(ByteBuffer buf,
                       int len)
        Utility function to copy a String out of a ByteBuffer. This is here because multiple chunk handlers can make use of it, and there's nowhere better to put it.
      • putString

        public static void putString(ByteBuffer buf,
                     String str)
        Utility function to copy a String into a ByteBuffer.
      • type

        public static int type(String typeName)
        Convert a 4-character string to a 32-bit type.
      • name

        public static String name(int type)
        Convert an integer type to a 4-character string.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1129 / . Delta: 0.03307 с