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 Location
IOException
protected File unsafeGetFile()
protected void initFile() throws IOException
IOException
protected void setFile(File file)
public String getSpecification()
getSpecification
in interface Location
public void open() throws IOException
open
in interface Location
IOException
public int read(ByteBuffer buffer) throws IOException
read
in interface Location
IOException
public int read(byte[] buffer) throws IOException
read
in interface Location
IOException
public InputStream getInputStream() throws IOException
getInputStream
in interface Location
IOException
Copyright © 2002-2019 The Apache Software Foundation. All Rights Reserved.