Package org.firebirdsql.gds.impl.wire
Interface Xdrable
- 
 public interface XdrableThe interfaceXdrablerepresents an object that can read and write itself from a strean in the xdr format used by the firebird engine.- Version:
- 1.0
- Author:
- David Jencks
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetLength()Get 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 Detail- 
getLengthint getLength() Get the total length (in bytes) of thisXdrablewhen it is written to XDR format.- Returns:
- The total length in bytes
 
 - 
readvoid read(XdrInputStream in, int length) throws java.io.IOException 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:
- java.io.IOException- if an error occurs while reading from the- XdrInputStream
 
 - 
writevoid write(XdrOutputStream out) throws java.io.IOException Write the thisXdrableout in XDR format to anXdrOutputStream.- Parameters:
- out- The output stream to which the- Xdrableis to be written
- Throws:
- java.io.IOException- if an error occurs while writing to the- XdrOutputStream
 
 
- 
 
-