| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ClassExternalizerFactory | |
| private static final ClassTable | |
| private static final ObjectResolver | |
| private static final ObjectTable | |
| private static final StreamHeader |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ByteInput | Returns: the byte input wrapperthe byte buffer buffer)Create a |
| public static ByteInput | Returns: the byte input wrapperthe input stream inputStream)Create a |
| public static ByteOutput | Returns: the byte output wrapperthe byte buffer buffer)Create a |
| public static ByteOutput | Returns: the byte output wrapperthe output stream outputStream)Create a |
| public static InputStream | Returns: the input stream wrapperthe byte input byteInput)Create an |
| public static OptionalDataException | Returns: a new OptionalDataExceptiontrue if there is no more data in the buffered part of the streamConstruct a new |
| public static OptionalDataException | Returns: a new OptionalDataExceptionthe number of bytes of primitive data available to be read in the current buffer length)Construct a new |
| public static OutputStream | Returns: the output stream wrapperthe byte output byteOutput)Create a |
| public static MarshallerFactory | Returns: the marshaller factory, ornull if no matching factory was foundthe name of the protocol to acquire name)
Deprecated
It is recommended that you use
Get a marshaller factory, by name.
getProvidedMarshallerFactory(String) instead; using the context
class loader to find a marshalling implementation is risky at best as the user may have just about anything on their
class path.
|
| public static MarshallerFactory | Returns: the marshaller factory, ornull if no matching factory was foundthe name of the protocol to acquire name, final ClassLoader the class loader to use classLoader)Get a marshaller factory, by name. |
| public static MarshallerFactory | Returns: the marshaller factory, ornull if no matching factory was foundthe name of the protocol to acquire name)Get a marshaller factory which is visible to this implementation, by name. |
| private static MarshallerFactory | |
| public static ClassExternalizerFactory | Returns: the null class externalizer factoryReturn the null class externalizer factory. |
| public static ClassTable | |
| public static ObjectResolver | |
| public static ObjectTable | |
| public static StreamHeader | Returns: the default stream header producerGet the default stream header producer, which reads and writes no header at all. |
| public static void | |
| public static void | |
| public static StreamHeader | Returns: the stream header objectthe header bytes headerBytes)Create a stream header that uses the given bytes. |
| NULL_CLASS_EXTERNALIZER_FACTORY | back to summary |
|---|---|
| private static final ClassExternalizerFactory NULL_CLASS_EXTERNALIZER_FACTORY | |
| NULL_CLASS_TABLE | back to summary |
|---|---|
| private static final ClassTable NULL_CLASS_TABLE | |
| NULL_OBJECT_RESOLVER | back to summary |
|---|---|
| private static final ObjectResolver NULL_OBJECT_RESOLVER | |
| NULL_OBJECT_TABLE | back to summary |
|---|---|
| private static final ObjectTable NULL_OBJECT_TABLE | |
| NULL_STREAM_HEADER | back to summary |
|---|---|
| private static final StreamHeader NULL_STREAM_HEADER | |
| Marshalling | back to summary |
|---|---|
| private Marshalling() | |
| createByteInput | back to summary |
|---|---|
| public static ByteInput createByteInput(final ByteBuffer buffer) Create a
| |
| createByteInput | back to summary |
|---|---|
| public static ByteInput createByteInput(final InputStream inputStream) Create a
| |
| createByteOutput | back to summary |
|---|---|
| public static ByteOutput createByteOutput(final ByteBuffer buffer) Create a
| |
| createByteOutput | back to summary |
|---|---|
| public static ByteOutput createByteOutput(final OutputStream outputStream) Create a
| |
| createInputStream | back to summary |
|---|---|
| public static InputStream createInputStream(final ByteInput byteInput) Create an
| |
| createOptionalDataException | back to summary |
|---|---|
| public static OptionalDataException createOptionalDataException(boolean eof) Construct a new
| |
| createOptionalDataException | back to summary |
|---|---|
| public static OptionalDataException createOptionalDataException(int length) Construct a new
| |
| createOutputStream | back to summary |
|---|---|
| public static OutputStream createOutputStream(final ByteOutput byteOutput) Create a
| |
| getMarshallerFactory | back to summary |
|---|---|
| public static MarshallerFactory getMarshallerFactory(final String name)
Deprecated It is recommended that you use Get a marshaller factory, by name. Uses the thread's current context classloader, if available, to locate the factory.
| |
| getMarshallerFactory | back to summary |
|---|---|
| public static MarshallerFactory getMarshallerFactory(final String name, final ClassLoader classLoader) Get a marshaller factory, by name. Uses the given classloader to locate the factory.
| |
| getProvidedMarshallerFactory | back to summary |
|---|---|
| public static MarshallerFactory getProvidedMarshallerFactory(final String name) Get a marshaller factory which is visible to this implementation, by name. Uses the class loader of this API.
| |
| loadMarshallerFactory | back to summary |
|---|---|
| private static MarshallerFactory loadMarshallerFactory(ServiceLoader<ProviderDescriptor> loader, String name) | |
| nullClassExternalizerFactory | back to summary |
|---|---|
| public static ClassExternalizerFactory nullClassExternalizerFactory() Return the null class externalizer factory. This instance does not externalize any classes.
| |
| nullClassTable | back to summary |
|---|---|
| public static ClassTable nullClassTable() Return the null class table instance. This instance contains no predefined classes.
| |
| nullObjectResolver | back to summary |
|---|---|
| public static ObjectResolver nullObjectResolver() Return the null object resolver. This instance does not translate objects in any way.
| |
| nullObjectTable | back to summary |
|---|---|
| public static ObjectTable nullObjectTable() Return the null object instance table. This instance contains no predefined instances.
| |
| nullStreamHeader | back to summary |
|---|---|
| public static StreamHeader nullStreamHeader() Get the default stream header producer, which reads and writes no header at all.
| |
| readFully | back to summary |
|---|---|
| public static void readFully(ByteInput input, byte[] dest) throws IOException Read bytes from a
| |
| readFully | back to summary |
|---|---|
| public static void readFully(ByteInput input, byte[] dest, int offs, int len) throws IOException Read bytes from a
| |
| streamHeader | back to summary |
|---|---|
| public static StreamHeader streamHeader(final byte[] headerBytes) Create a stream header that uses the given bytes.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | readHeader(final ByteInput
the stream header input)Implements org. |
| public String | |
| public void | writeHeader(final ByteOutput
the stream header output)Implements org. |
| headerBytes | back to summary |
|---|---|
| private final byte[] headerBytes | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| StaticStreamHeader | back to summary |
|---|---|
| public StaticStreamHeader(final byte[] bytes) | |
| readHeader | back to summary |
|---|---|
| public void readHeader(final ByteInput input) throws IOException Implements org. Doc from org. Read the stream header from the stream.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| writeHeader | back to summary |
|---|---|
| public void writeHeader(final ByteOutput output) throws IOException Implements org. Doc from org. Write the stream header to the stream.
| |