public class EndianOutputStream extends OutputStream implements EndianOutput
| Constructor and Description |
|---|
EndianOutputStream(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
long |
getFilePointer() |
long |
length() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b)
Write a big endian int.
|
void |
writeBytes(String s) |
void |
writeDouble(double d)
Write a big endian double.
|
void |
writeFloat(float f)
Write a big endian float.
|
void |
writeInt(int i)
Write a big endian int.
|
void |
writeLEDouble(double d)
Write a little endian double.
|
void |
writeLEFloat(float f)
Write a little endian float.
|
void |
writeLEInt(int i)
Write a little endian int.
|
void |
writeLELong(long l)
Write a little endian int.
|
void |
writeLEShort(short s)
Write a little endian short.
|
void |
writeLong(long l)
Write a big endian int.
|
void |
writeShort(short s)
Write a big endian short.
|
public EndianOutputStream(OutputStream out)
public void close()
throws IOException
close in interface EndianOutputclose in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
flush in interface EndianOutputflush in interface Flushableflush in class OutputStreampublic long getFilePointer()
throws IOException
getFilePointer in interface EndianOutputIOExceptionpublic long length()
throws IOException
length in interface EndianOutputIOExceptionpublic void write(byte[] b)
throws IOException
write in interface EndianOutputwrite in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in interface EndianOutputwrite in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
EndianOutputwrite in interface EndianOutputwrite in class OutputStreamb - The int.IOException - If an I/O error occurs.public final void writeBytes(String s) throws IOException
writeBytes in interface EndianOutputIOExceptionpublic void writeDouble(double d)
throws IOException
EndianOutputwriteDouble in interface EndianOutputd - The double.IOException - If an I/O error occurs.public void writeFloat(float f)
throws IOException
EndianOutputwriteFloat in interface EndianOutputf - The float.IOException - If an I/O error occurs.public void writeInt(int i)
throws IOException
EndianOutputwriteInt in interface EndianOutputi - The int.IOException - If an I/O error occurs.public void writeLEDouble(double d)
throws IOException
EndianOutputwriteLEDouble in interface EndianOutputd - The double.IOException - If an I/O error occurs.public void writeLEFloat(float f)
throws IOException
EndianOutputwriteLEFloat in interface EndianOutputf - The float.IOException - If an I/O error occurs.public void writeLEInt(int i)
throws IOException
EndianOutputwriteLEInt in interface EndianOutputi - The int.IOException - If an I/O error occurs.public void writeLELong(long l)
throws IOException
EndianOutputwriteLELong in interface EndianOutputl - The long.IOException - If an I/O error occurs.public void writeLEShort(short s)
throws IOException
EndianOutputwriteLEShort in interface EndianOutputs - The short.IOException - If an I/O error occurs.public void writeLong(long l)
throws IOException
EndianOutputwriteLong in interface EndianOutputl - The long.IOException - If an I/O error occurs.public void writeShort(short s)
throws IOException
EndianOutputwriteShort in interface EndianOutputs - The short.IOException - If an I/O error occurs.Copyright © 2015 Revolution Systems Inc.. All rights reserved.