Interface ISerializer
-
public interface ISerializer- Since:
- Mar 8, 2006
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHANDSHAKE_CLIENT_IDkey used in handshake dictionarystatic java.lang.StringHANDSHAKE_PROCESS_IDkey used in handshake dictionarystatic java.lang.StringHANDSHAKE_PROTOkey used in handshake dictionarystatic java.lang.StringHANDSHAKE_VERSIONkey used in handshake dictionary
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispose(boolean sendShutdownMessage)Close the internal input/output streamsISerializerflush()Flush buffered data if anyNCMaphandshake()booleanisValid()Returns true if the ISerializer object is validNCTyperead()Reads aNCTypeobject from a DataInput.ISerializerwrite(NCType val)Writes anNCTypeobject to a DataOutput.
-
-
-
Field Detail
-
HANDSHAKE_VERSION
static final java.lang.String HANDSHAKE_VERSION
key used in handshake dictionary- See Also:
- Constant Field Values
-
HANDSHAKE_PROTO
static final java.lang.String HANDSHAKE_PROTO
key used in handshake dictionary- See Also:
- Constant Field Values
-
HANDSHAKE_CLIENT_ID
static final java.lang.String HANDSHAKE_CLIENT_ID
key used in handshake dictionary- See Also:
- Constant Field Values
-
HANDSHAKE_PROCESS_ID
static final java.lang.String HANDSHAKE_PROCESS_ID
key used in handshake dictionary- See Also:
- Constant Field Values
-
-
Method Detail
-
handshake
NCMap handshake()
- Returns:
- the handshake dictionary
-
read
NCType read() throws java.io.IOException
Reads aNCTypeobject from a DataInput.- Returns:
- a
NCTypeobject from the specified DataInput - Throws:
java.io.IOException- on I/O failure
-
write
ISerializer write(NCType val) throws java.io.IOException
Writes anNCTypeobject to a DataOutput.- Parameters:
val- NCType to write- Returns:
- the Serializer
- Throws:
java.io.IOException- on I/O failure
-
flush
ISerializer flush() throws java.io.IOException
Flush buffered data if any- Returns:
- the Serializer
- Throws:
java.io.IOException- on error
-
isValid
boolean isValid()
Returns true if the ISerializer object is valid- Returns:
- true if the ISerializer object is valid
-
dispose
void dispose(boolean sendShutdownMessage)
Close the internal input/output streams- Parameters:
sendShutdownMessage- - if true sends a shutdown message before disposal
-
-