Interface ISerializer
public interface ISerializer
- Since:
- Mar 8, 2006
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose(boolean sendShutdownMessage) Close the internal input/output streamsflush()Flush buffered data if anybooleanisValid()Returns true if the ISerializer object is validread()Reads aNCTypeobject from a DataInput.Writes anNCTypeobject to a DataOutput.
-
Field Details
-
HANDSHAKE_VERSION
key used in handshake dictionary- See Also:
-
HANDSHAKE_PROTO
key used in handshake dictionary- See Also:
-
HANDSHAKE_CLIENT_ID
key used in handshake dictionary- See Also:
-
HANDSHAKE_PROCESS_ID
key used in handshake dictionary- See Also:
-
-
Method Details
-
handshake
NCMap handshake()- Returns:
- the handshake dictionary
-
read
Reads aNCTypeobject from a DataInput.- Returns:
- a
NCTypeobject from the specified DataInput - Throws:
IOException- on I/O failure
-
write
Writes anNCTypeobject to a DataOutput.- Parameters:
val- NCType to write- Returns:
- the Serializer
- Throws:
IOException- on I/O failure
-
flush
Flush buffered data if any- Returns:
- the Serializer
- Throws:
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
-