|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.gds.impl.wire.XdrOutputStream
public class XdrOutputStream
An XdrOutputStream writes data in XDR format to an
underlying java.io.OutputStream.
| Constructor Summary | |
|---|---|
protected |
XdrOutputStream()
|
|
XdrOutputStream(OutputStream out)
Create a new instance of XdrOutputStream. |
| Method Summary | |
|---|---|
void |
close()
Close this stream and the underlying output stream. |
void |
flush()
Flush all buffered data to the underlying output stream. |
void |
write(byte[] b)
Write an array of bytes to the underlying output stream
in XDR format. |
void |
write(byte[] b,
int len,
int pad)
Write a byte buffer to the underlying output stream
in XDR format |
void |
write(int b)
Write a single byte to the underlying output stream in
XDR format. |
void |
writeBlobBuffer(byte[] buffer)
Write a blob buffer to the underlying output stream in XDR format. |
void |
writeBuffer(byte[] buffer)
Write a byte buffer to the underlying output stream in
XDR format. |
void |
writeInt(int v)
Write an int value to the underlying stream in XDR format. |
void |
writeLong(long v)
Write a long value to the underlying stream in XDR format. |
void |
writeSet(int type,
byte[] s)
Write a set of distinct byte values (ie parameter buffer). |
void |
writeSQLData(XSQLDA xsqlda)
Write a set of SQL data from a XSQLDA data structure. |
void |
writeString(String s)
Write a String to the underlying output stream in
XDR format. |
void |
writeString(String s,
String encoding)
Write content of the specified string using the specified Java encoding. |
void |
writeTyped(int type,
Xdrable item)
Write an Xdrable to this output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected XdrOutputStream()
public XdrOutputStream(OutputStream out)
XdrOutputStream.
out - The underlying OutputStream to write to| Method Detail |
|---|
public void writeBuffer(byte[] buffer)
throws IOException
byte buffer to the underlying output stream in
XDR format.
buffer - The byte buffer to be written
IOException - if an error occurs while writing to the
underlying output stream
public void writeBlobBuffer(byte[] buffer)
throws IOException
buffer - A byte array containing the blob
IOException - if an error occurs while writing to the
underlying output stream
public void writeString(String s)
throws IOException
String to the underlying output stream in
XDR format.
s - The String to be written
IOException - if an error occurs while writing to the
underlying output stream
public void writeString(String s,
String encoding)
throws IOException
IOException
public void writeSet(int type,
byte[] s)
throws IOException
type - The type of the parameter value being written,
e.g. ISCConstants.isc_tpb_version3s - The set of byte values to be written
IOException - if an error occurs while writing to the
underlying output stream
public void writeTyped(int type,
Xdrable item)
throws IOException
Xdrable to this output stream.
type - Type of the Xdrable to be written,
e.g. ISCConstants.isc_tpb_version3item - The object to be written
IOException - if an error occurs while writing to the
underlying output stream
public void writeSQLData(XSQLDA xsqlda)
throws IOException
XSQLDA data structure.
xsqlda - The datastructure containing the SQL data to be written
IOException - if an error occurs while writing to the
underlying output stream
public void writeLong(long v)
throws IOException
long value to the underlying stream in XDR format.
v - The long value to be written
IOException - if an error occurs while writing to the
underlying output stream
public void writeInt(int v)
throws IOException
int value to the underlying stream in XDR format.
v - The int value to be written
IOException - if an error occurs while writing to the
underlying output stream
public void write(byte[] b,
int len,
int pad)
throws IOException
byte buffer to the underlying output stream
in XDR format
b - The byte buffer to be writtenlen - The number of bytes to writepad - The number of (blank) padding bytes to write
IOException - if an error occurs while writing to the
underlying output stream
public void write(int b)
throws IOException
byte to the underlying output stream in
XDR format.
b - The value to be written, will be truncated to a byte
IOException - if an error occurs while writing to the
underlying output stream
public void write(byte[] b)
throws IOException
bytes to the underlying output stream
in XDR format.
b - The byte array to be written
IOException - if an error occurs while writing to the
underlying output stream
public void flush()
throws IOException
IOException - if an error occurs while writing to the
underlying output stream
public void close()
throws IOException
IOException - if an error occurs while closing the
underlying stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||