public class FileIOSupplier extends Object implements LocatableInputSupplier<InputStream>, LocatableOutputSupplier<OutputStream>
File
Constructor and Description |
---|
FileIOSupplier(File file)
Create a file I/O supplier.
|
FileIOSupplier(File absoluteFile,
URI usedURI)
Create a file I/O supplier, which may return a relative URI on
getLocation() . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
InputStream |
getInput() |
URI |
getLocation()
Get the location
|
OutputStream |
getOutput() |
URI |
getUsedLocation()
Returns the used location, which may be relative.
|
int |
hashCode() |
public FileIOSupplier(File file)
file
- the filepublic FileIOSupplier(File absoluteFile, URI usedURI)
getLocation()
.absoluteFile
- the fileusedURI
- the (relative) URI to usepublic InputStream getInput() throws IOException
getInput
in interface com.google.common.io.InputSupplier<InputStream>
IOException
InputSupplier.getInput()
public OutputStream getOutput() throws IOException
getOutput
in interface com.google.common.io.OutputSupplier<OutputStream>
IOException
OutputSupplier.getOutput()
public URI getLocation()
Locatable
getLocation
in interface Locatable
null
Locatable.getLocation()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public URI getUsedLocation()
LocatableInputSupplier
getUsedLocation
in interface LocatableInputSupplier<InputStream>
Locatable.getLocation()
, or
a relative URIBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a