org.apache.maven.shared.io.location
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.IOException
protected void setFile(java.io.File file)
public java.lang.String getSpecification()
getSpecification
in interface Location
public 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 Location
java.io.IOException
Copyright © 2014. All Rights Reserved.