|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
eu.reservoir.monitoring.distribution.XDRDataOutputStream
public class XDRDataOutputStream
An OutputStream that has XDR encoded data in it.
Field Summary |
---|
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
XDRDataOutputStream(java.io.OutputStream out)
Construct an XDRDataOutputStream. |
Method Summary | |
---|---|
int |
size()
|
java.lang.String |
toString()
To string. |
void |
write(int b)
Writes the specified byte to this output stream. |
void |
writeBoolean(boolean b)
Put a boolean onto the stream. |
void |
writeByte(byte b)
Put a single byte onto the stream. |
void |
writeByte(int i)
Put a single byte onto the stream. |
void |
writeBytes(byte[] data)
Put a array of bytes onto the stream as a variable length opaque data item. |
void |
writeBytes(byte[] data,
int len)
Put a array of bytes onto the stream as a variable length opaque data item. |
void |
writeBytes(byte[] data,
int bufferOffset,
int len)
Put a array of bytes onto the stream as a variable length opaque data item. |
void |
writeBytes(java.lang.String str)
Put a String represented as a variable length opaque data item. |
void |
writeChar(char i)
Put a char onto the stream. |
void |
writeChar(int i)
Put a char onto the stream. |
void |
writeChars(java.lang.String str)
Put a String represented as a variable length opaque data item. |
void |
writeDouble(double d)
Put a double precision floating point number (as 64 bits) onto the stream. |
void |
writeFixed(byte[] data)
Put a array of bytes onto the stream as a fixed length opaque data item. |
void |
writeFixed(byte[] data,
int len)
Put a array of bytes onto the stream as a fixed length opaque data item. |
void |
writeFixed(byte[] data,
int bufferOffset,
int len)
Put a array of bytes onto the stream as a fixed length opaque data item. |
void |
writeFloat(float f)
Put a floating point number (as 32 bits) onto the stream. |
void |
writeInt(int i)
Put an integer onto the stream. |
void |
writeLong(long l)
Put a long onto the stream. |
void |
writeShort(int i)
Put a short onto the stream. |
void |
writeShort(short i)
Put a short onto the stream. |
void |
writeString(java.lang.String str)
Put a String represented as a variable length opaque data item. |
void |
writeUTF(java.lang.String str)
Put a String represented as a variable length opaque data item. |
Methods inherited from class java.io.FilterOutputStream |
---|
close, flush, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.io.DataOutput |
---|
write, write |
Constructor Detail |
---|
public XDRDataOutputStream(java.io.OutputStream out)
Method Detail |
---|
public void write(int b) throws java.io.IOException
write
in interface java.io.DataOutput
write
in class java.io.FilterOutputStream
java.io.IOException
public int size()
public void writeBoolean(boolean b) throws java.io.IOException
writeBoolean
in interface java.io.DataOutput
java.io.IOException
public void writeByte(byte b) throws java.io.IOException
java.io.IOException
public void writeByte(int i) throws java.io.IOException
writeByte
in interface java.io.DataOutput
java.io.IOException
public void writeChar(char i) throws java.io.IOException
java.io.IOException
public void writeChar(int i) throws java.io.IOException
writeChar
in interface java.io.DataOutput
java.io.IOException
public void writeShort(short i) throws java.io.IOException
java.io.IOException
public void writeShort(int i) throws java.io.IOException
writeShort
in interface java.io.DataOutput
java.io.IOException
public void writeInt(int i) throws java.io.IOException
writeInt
in interface java.io.DataOutput
java.io.IOException
public void writeLong(long l) throws java.io.IOException
writeLong
in interface java.io.DataOutput
java.io.IOException
public void writeFloat(float f) throws java.io.IOException
writeFloat
in interface java.io.DataOutput
java.io.IOException
public void writeDouble(double d) throws java.io.IOException
writeDouble
in interface java.io.DataOutput
d
- The double precision floating point number to add to the
stream
java.io.IOException
public void writeString(java.lang.String str) throws java.io.IOException
java.io.IOException
public void writeUTF(java.lang.String str) throws java.io.IOException
writeUTF
in interface java.io.DataOutput
java.io.IOException
public void writeChars(java.lang.String str) throws java.io.IOException
writeChars
in interface java.io.DataOutput
java.io.IOException
public void writeBytes(java.lang.String str) throws java.io.IOException
writeBytes
in interface java.io.DataOutput
java.io.IOException
public void writeBytes(byte[] data) throws java.io.IOException
java.io.IOException
public void writeBytes(byte[] data, int bufferOffset, int len) throws java.io.IOException
data
- The array which the data is taken frombufferOffset
- The position in the array where copying startslen
- The number of bytes to copy to the buffer
java.io.IOException
public void writeBytes(byte[] data, int len) throws java.io.IOException
data
- The array which the data is taken fromlen
- The number of bytes to put onto the stream
java.io.IOException
public void writeFixed(byte[] data) throws java.io.IOException
java.io.IOException
public void writeFixed(byte[] data, int bufferOffset, int len) throws java.io.IOException
data
- The array which the data is taken frombufferOffset
- The position in the array where copying startslen
- The number of bytes to copy to the buffer
java.io.IOException
public void writeFixed(byte[] data, int len) throws java.io.IOException
data
- The array which the data is taken fromlen
- The number of bytes to put onto the stream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |