|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.RandomAccessFile
mnist.tools.MnistDbFile
mnist.tools.MnistLabelFile
public class MnistLabelFile
MNIST database label file.
| Constructor Summary | |
|---|---|
MnistLabelFile(java.lang.String name,
java.lang.String mode)
Creates new MNIST database label file ready for reading. |
|
| Method Summary | |
|---|---|
int |
readLabel()
Reads the integer at the current position. |
| Methods inherited from class mnist.tools.MnistDbFile |
|---|
getCount, getCurrentIndex, getEntryLength, getHeaderSize, next, prev, setCurrentIndex |
| 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 |
| Constructor Detail |
|---|
public MnistLabelFile(java.lang.String name,
java.lang.String mode)
throws java.io.FileNotFoundException,
java.io.IOException
name - the system-dependent filenamemode - the access mode
java.io.IOException
java.io.FileNotFoundException| Method Detail |
|---|
public int readLabel()
throws java.io.IOException
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||