Package clickDetector
Class WindowsFile
java.lang.Object
java.io.RandomAccessFile
clickDetector.WindowsFile
- All Implemented Interfaces:
ReadWinFile
,WriteWinFile
,Closeable
,DataInput
,DataOutput
,AutoCloseable
- Author:
- doug Gillespie
Some additions to RandomAccessFile to write binary data that is compatible with the RainbowClick file format.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
float
int
Read a Windows 32 bit integerlong
int
int
void
seekEnd()
Go to the end of the file.void
writeWinDouble
(double val) void
writeWinFloat
(float val) void
writeWinInt
(int val) void
writeWinLong
(long longValue) void
writeWinShort
(int val) Methods inherited from class java.io.RandomAccessFile
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface clickDetector.ReadWinFile
readByte
Methods inherited from interface clickDetector.WriteWinFile
writeByte
-
Constructor Details
-
WindowsFile
- Throws:
IOException
-
WindowsFile
- Throws:
IOException
-
-
Method Details
-
seekEnd
Go to the end of the file.- Throws:
IOException
-
writeWinInt
- Specified by:
writeWinInt
in interfaceWriteWinFile
- Throws:
IOException
-
readWinInt
Read a Windows 32 bit integer- Specified by:
readWinInt
in interfaceReadWinFile
- Throws:
IOException
-
writeWinShort
- Specified by:
writeWinShort
in interfaceWriteWinFile
- Throws:
IOException
-
readWinShort
- Specified by:
readWinShort
in interfaceReadWinFile
- Throws:
IOException
-
readWinUShort
- Throws:
IOException
-
writeWinFloat
- Specified by:
writeWinFloat
in interfaceWriteWinFile
- Throws:
IOException
-
readWinFloat
- Specified by:
readWinFloat
in interfaceReadWinFile
- Throws:
IOException
-
writeWinDouble
- Specified by:
writeWinDouble
in interfaceWriteWinFile
- Throws:
IOException
-
readWinDouble
- Specified by:
readWinDouble
in interfaceReadWinFile
- Throws:
IOException
-
writeWinLong
- Specified by:
writeWinLong
in interfaceWriteWinFile
- Throws:
IOException
-
readWinLong
- Specified by:
readWinLong
in interfaceReadWinFile
- Throws:
IOException
-