public class FileLocation extends java.lang.Object implements Location
| Modifier | Constructor and Description |
|---|---|
|
FileLocation(java.io.File file,
java.lang.String specification) |
protected |
FileLocation(java.lang.String specification) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.io.File |
getFile() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getSpecification() |
protected void |
initFile() |
void |
open() |
int |
read(byte[] buffer) |
int |
read(java.nio.ByteBuffer buffer) |
protected void |
setFile(java.io.File file) |
protected java.io.File |
unsafeGetFile() |
public FileLocation(java.io.File file,
java.lang.String specification)
protected FileLocation(java.lang.String specification)
public java.io.File getFile()
throws java.io.IOException
protected java.io.File unsafeGetFile()
protected void initFile()
throws java.io.IOException
java.io.IOExceptionprotected void setFile(java.io.File file)
public java.lang.String getSpecification()
getSpecification in interface Locationpublic void open()
throws java.io.IOException
public int read(java.nio.ByteBuffer buffer)
throws java.io.IOException
public int read(byte[] buffer)
throws java.io.IOException
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface Locationjava.io.IOExceptionCopyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.