Package clickDetector
Class WindowsBuffer
java.lang.Object
clickDetector.WindowsBuffer
- All Implemented Interfaces:
WriteWinFile
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
totally resets, including deleting of the buffer.byte[]
getBytes()
int
int
readByte()
int
int
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)
-
Constructor Details
-
WindowsBuffer
public WindowsBuffer(byte[] data)
-
-
Method Details
-
getUsedBytes
public int getUsedBytes() -
getBytes
public byte[] getBytes() -
clear
public void clear()totally resets, including deleting of the buffer. -
reset
public void reset()Just rests the offset, so writing starts again at the beginning, but does not delete the allocated memory. -
writeWinInt
- Specified by:
writeWinInt
in interfaceWriteWinFile
- Throws:
IOException
-
readWinInt
- Throws:
IOException
-
writeWinShort
- Specified by:
writeWinShort
in interfaceWriteWinFile
- Throws:
IOException
-
readWinShort
- Throws:
IOException
-
writeByte
- Specified by:
writeByte
in interfaceWriteWinFile
- Throws:
IOException
-
writeByte
- Throws:
IOException
-
readByte
- Throws:
IOException
-
writeWinFloat
- Specified by:
writeWinFloat
in interfaceWriteWinFile
- Throws:
IOException
-
writeWinDouble
- Specified by:
writeWinDouble
in interfaceWriteWinFile
- Throws:
IOException
-
writeWinLong
- Specified by:
writeWinLong
in interfaceWriteWinFile
- Throws:
IOException
-