public class WindowsBuffer extends java.lang.Object implements WriteWinFile
Constructor and Description |
---|
WindowsBuffer(byte[] data) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
totally resets, including deleting of the buffer.
|
byte[] |
getBytes() |
int |
getUsedBytes() |
int |
readByte() |
int |
readWinInt() |
int |
readWinShort() |
void |
reset()
Just rests the offset, so writing starts again at the beginning, but does not
delete the allocated memory.
|
void |
writeByte(byte b) |
void |
writeByte(int b) |
void |
writeWinDouble(double val) |
void |
writeWinFloat(float val) |
void |
writeWinInt(int val) |
void |
writeWinLong(long longValue) |
void |
writeWinShort(int val) |
public int getUsedBytes()
public byte[] getBytes()
public void clear()
public void reset()
public void writeWinInt(int val) throws java.io.IOException
writeWinInt
in interface WriteWinFile
java.io.IOException
public int readWinInt() throws java.io.IOException
java.io.IOException
public void writeWinShort(int val) throws java.io.IOException
writeWinShort
in interface WriteWinFile
java.io.IOException
public int readWinShort() throws java.io.IOException
java.io.IOException
public void writeByte(int b) throws java.io.IOException
writeByte
in interface WriteWinFile
java.io.IOException
public void writeByte(byte b) throws java.io.IOException
java.io.IOException
public int readByte() throws java.io.IOException
java.io.IOException
public void writeWinFloat(float val) throws java.io.IOException
writeWinFloat
in interface WriteWinFile
java.io.IOException
public void writeWinDouble(double val) throws java.io.IOException
writeWinDouble
in interface WriteWinFile
java.io.IOException
public void writeWinLong(long longValue) throws java.io.IOException
writeWinLong
in interface WriteWinFile
java.io.IOException