public class ResourceEndianOutput extends Object implements EndianOutput
| Constructor and Description |
|---|
ResourceEndianOutput(org.springframework.core.io.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
long |
getFilePointer() |
long |
length() |
void |
seek(long pos) |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(int i)
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 ResourceEndianOutput(org.springframework.core.io.Resource resource)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface EndianOutputIOExceptionpublic void flush()
flush in interface EndianOutputpublic long getFilePointer()
throws IOException
getFilePointer in interface EndianOutputIOExceptionpublic long length()
throws IOException
length in interface EndianOutputIOExceptionpublic void seek(long pos)
throws IOException
IOExceptionpublic void write(byte[] bytes)
throws IOException
write in interface EndianOutputIOExceptionpublic void write(byte[] bytes,
int offset,
int length)
throws IOException
write in interface EndianOutputIOExceptionpublic void write(int i)
throws IOException
EndianOutputwrite in interface EndianOutputi - The int.IOException - If an I/O error occurs.public 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.