public class InFile extends DataInputStream
in| Constructor and Description |
|---|
InFile(File file) |
InFile(String filename) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytesFromFile(File file)
Gets a byte arrray from a file
|
String |
readFile()
Reads File from Disk
|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesavailable, close, mark, markSupported, read, reset, skippublic InFile(String filename) throws FileNotFoundException
FileNotFoundExceptionpublic InFile(File file) throws FileNotFoundException
FileNotFoundExceptionpublic String readFile()
fname - path to filepublic static byte[] getBytesFromFile(File file) throws IOException
file - File the file to get bytes fromIOExceptionCopyright © 2002–2019 Starter Inc.. All rights reserved.