|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.javel.gisbeans.io.ObjectEndianOutputStream
public class ObjectEndianOutputStream
This class enables the object outputstream to be switched from little to big endian. The class works exactly like an ObjectOutputStream
| Field Summary |
|---|
| Fields inherited from interface nl.javel.gisbeans.io.EndianInterface |
|---|
BIG_ENDIAN, LITTLE_ENDIAN |
| Constructor Summary | |
|---|---|
ObjectEndianOutputStream(OutputStream outputStream)
constructs a new ObjectEndianOutputStream. |
|
| Method Summary | |
|---|---|
void |
close()
closes the stream |
void |
flush()
flushes the stream |
int |
getEncode()
returns the encode |
void |
setEncode(int encode)
sets the Encode |
int |
size()
|
void |
write(byte[] buffer)
|
void |
write(byte[] buffer,
int off,
int len)
|
void |
write(int value)
|
void |
writeBoolean(boolean value)
|
void |
writeByte(int value)
|
void |
writeBytes(String string)
|
void |
writeChar(int value)
|
void |
writeChars(String string)
|
void |
writeDouble(double value)
|
void |
writeFloat(float value)
|
void |
writeInt(int value)
|
void |
writeLong(long value)
|
void |
writeShort(int value)
|
void |
writeUTF(String string)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectEndianOutputStream(OutputStream outputStream)
outputStream - the target.| Method Detail |
|---|
public void write(byte[] buffer,
int off,
int len)
throws IOException
write in interface DataOutputIOExceptionDataOutput.write(byte[], int, int)
public void writeFloat(float value)
throws IOException
writeFloat in interface DataOutputIOExceptionDataOutput.writeFloat(float)
public void write(int value)
throws IOException
write in interface DataOutputIOExceptionDataOutput.write(int)
public void writeShort(int value)
throws IOException
writeShort in interface DataOutputIOExceptionDataOutput.writeShort(int)
public void writeBytes(String string)
throws IOException
writeBytes in interface DataOutputIOExceptionDataOutput.writeBytes(java.lang.String)
public void writeChar(int value)
throws IOException
writeChar in interface DataOutputIOExceptionDataOutput.writeChar(int)
public void writeByte(int value)
throws IOException
writeByte in interface DataOutputIOExceptionDataOutput.writeByte(int)
public void writeBoolean(boolean value)
throws IOException
writeBoolean in interface DataOutputIOExceptionDataOutput.writeBoolean(boolean)
public void writeLong(long value)
throws IOException
writeLong in interface DataOutputIOExceptionDataOutput.writeLong(long)
public void writeUTF(String string)
throws IOException
writeUTF in interface DataOutputIOExceptionDataOutput.writeUTF(java.lang.String)
public void writeInt(int value)
throws IOException
writeInt in interface DataOutputIOExceptionDataOutput.writeInt(int)
public void writeChars(String string)
throws IOException
writeChars in interface DataOutputIOExceptionDataOutput.writeChars(java.lang.String)
public void write(byte[] buffer)
throws IOException
write in interface DataOutputIOExceptionDataOutput.write(byte[])
public void writeDouble(double value)
throws IOException
writeDouble in interface DataOutputIOExceptionDataOutput.writeDouble(double)public final int size()
public void flush()
throws IOException
IOException
public void close()
throws IOException
IOExceptionpublic void setEncode(int encode)
EndianInterface
setEncode in interface EndianInterfaceencode - the encode which is either BIG_ENDIAN or LITTLE_ENDIANEndianInterface.setEncode(int)public int getEncode()
EndianInterface
getEncode in interface EndianInterfaceEndianInterface.getEncode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||