public abstract class AbstractFile extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUF_SIZE |
protected String |
path |
| Constructor and Description |
|---|
AbstractFile(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
BufferedInputStream |
getBufferedInputStream() |
String |
getPath()
Absolute normalized path to the file.
|
RandomAccessFile |
getRandomAccessFile() |
protected String path
protected static final int BUF_SIZE
public AbstractFile(String path)
public BufferedInputStream getBufferedInputStream() throws FileNotFoundException
FileNotFoundExceptionpublic RandomAccessFile getRandomAccessFile() throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic String getPath()
Copyright © 2017. All rights reserved.