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