public interface Xdrable
The interface
Xdrable represents an object that can read
and write itself from a strean in the xdr format used by the firebird
engine.- Author:
- David Jencks
-
Method Summary
Modifier and TypeMethodDescriptionintGet the total length (in bytes) of thisXdrablewhen it is written to XDR format.voidread(XdrInputStream in, int length) Read inXdrablein XDR format, from anXdrInputStream.voidwrite(XdrOutputStream out) Write the thisXdrableout in XDR format to anXdrOutputStream.
-
Method Details
-
getLength
int getLength()Get the total length (in bytes) of thisXdrablewhen it is written to XDR format.- Returns:
- The total length in bytes
-
read
Read inXdrablein XDR format, from anXdrInputStream.- Parameters:
in- The input stream from which the object is to be read.length- The number of bytes to be read- Throws:
IOException- if an error occurs while reading from theXdrInputStream
-
write
Write the thisXdrableout in XDR format to anXdrOutputStream.- Parameters:
out- The output stream to which theXdrableis to be written- Throws:
IOException- if an error occurs while writing to theXdrOutputStream
-