public abstract class File extends Object implements DataInput
| Constructor and Description |
|---|
File() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
static File |
createFile(URL url,
String mode) |
String |
getExtension() |
abstract String |
getFilename() |
abstract long |
getFilePointer() |
abstract boolean |
isLocal() |
abstract long |
length() |
abstract void |
mark(int readlimit) |
abstract int |
read() |
abstract int |
read(byte[] b) |
abstract int |
read(byte[] b,
int offs,
int len) |
abstract boolean |
readBoolean() |
abstract byte |
readByte() |
abstract char |
readChar() |
abstract double |
readDouble() |
abstract float |
readFloat() |
abstract void |
readFully(byte[] b) |
abstract void |
readFully(byte[] b,
int offs,
int len) |
abstract int |
readInt() |
int |
readIntBack() |
abstract String |
readLine() |
abstract long |
readLong() |
long |
readLongBack() |
abstract short |
readShort() |
short |
readShortBack() |
abstract int |
readUnsignedByte() |
abstract int |
readUnsignedShort() |
abstract String |
readUTF() |
abstract void |
reset() |
abstract void |
seek(long pos) |
abstract int |
skipBytes(int n) |
public static File createFile(URL url, String mode) throws IOException
IOExceptionpublic abstract void mark(int readlimit)
throws IOException
IOExceptionpublic abstract void reset()
throws IOException
IOExceptionpublic abstract int read()
throws IOException
IOExceptionpublic short readShortBack()
throws IOException
IOExceptionpublic int readIntBack()
throws IOException
IOExceptionpublic long readLongBack()
throws IOException
IOExceptionpublic abstract int read(byte[] b)
throws IOException
IOExceptionpublic abstract int read(byte[] b,
int offs,
int len)
throws IOException
IOExceptionpublic abstract void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic abstract void readFully(byte[] b,
int offs,
int len)
throws IOException
readFully in interface DataInputIOExceptionpublic abstract void close()
throws IOException
IOExceptionpublic abstract boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic abstract byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic abstract char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic abstract double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionpublic abstract float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic abstract int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic abstract String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic abstract long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic abstract short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic abstract int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic abstract int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic abstract String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic abstract int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic abstract long length()
throws IOException
IOExceptionpublic abstract void seek(long pos)
throws IOException
IOExceptionpublic abstract long getFilePointer()
throws IOException
IOExceptionpublic abstract boolean isLocal()
public abstract String getFilename()
public String getExtension()
Copyright © 2014. All rights reserved.