public class RemoteObjectOutputStream extends ObjectOutputStream
ObjectOutputStream.PutField
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
Constructor and Description |
---|
RemoteObjectOutputStream(OutputStream os,
RemoteObjectOutputStream ros) |
RemoteObjectOutputStream(VirtualSocket socket) |
RemoteObjectOutputStream(VirtualSocket socket,
ConcurrentHashMap<String,Integer> hmClassDesc,
AtomicInteger aiClassDesc) |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
void |
writeAsciiString(String s) |
protected void |
writeClassDescriptor(ObjectStreamClass desc) |
protected void |
writeStreamHeader() |
annotateClass, annotateProxyClass, close, defaultWriteObject, drain, enableReplaceObject, putFields, replaceObject, reset, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeObjectOverride, writeShort, writeUnshared, writeUTF
public RemoteObjectOutputStream(VirtualSocket socket) throws IOException
IOException
public RemoteObjectOutputStream(OutputStream os, RemoteObjectOutputStream ros) throws IOException
IOException
public RemoteObjectOutputStream(VirtualSocket socket, ConcurrentHashMap<String,Integer> hmClassDesc, AtomicInteger aiClassDesc) throws IOException
IOException
protected void writeStreamHeader() throws IOException, StreamCorruptedException
writeStreamHeader
in class ObjectOutputStream
IOException
StreamCorruptedException
public void flush() throws IOException
flush
in interface Flushable
flush
in interface ObjectOutput
flush
in class ObjectOutputStream
IOException
protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException
writeClassDescriptor
in class ObjectOutputStream
IOException
public void writeAsciiString(String s) throws IOException, StreamCorruptedException
IOException
StreamCorruptedException
Copyright © 1999–2019 ViaOA. All rights reserved.