eu.esdihumboldt.hale.common.core.io.supplier
Class FileIOSupplier
java.lang.Object
eu.esdihumboldt.hale.common.core.io.supplier.FileIOSupplier
- All Implemented Interfaces:
- com.google.common.io.InputSupplier<InputStream>, com.google.common.io.OutputSupplier<OutputStream>, Locatable, LocatableInputSupplier<InputStream>, LocatableOutputSupplier<OutputStream>
public class FileIOSupplier
- extends Object
- implements LocatableInputSupplier<InputStream>, LocatableOutputSupplier<OutputStream>
I/O supplier based on a File
- Since:
- 2.2
- Author:
- Simon Templer
- Partner:
- 01 / Fraunhofer Institute for Computer Graphics Research
FileIOSupplier
public FileIOSupplier(File file)
- Create a file I/O supplier
- Parameters:
file
- the file
getInput
public InputStream getInput()
throws IOException
- Specified by:
getInput
in interface com.google.common.io.InputSupplier<InputStream>
- Throws:
IOException
- See Also:
InputSupplier.getInput()
getOutput
public OutputStream getOutput()
throws IOException
- Specified by:
getOutput
in interface com.google.common.io.OutputSupplier<OutputStream>
- Throws:
IOException
- See Also:
OutputSupplier.getOutput()
getLocation
public URI getLocation()
- Description copied from interface:
Locatable
- Get the location
- Specified by:
getLocation
in interface Locatable
- Returns:
- the location, may be
null
- See Also:
Locatable.getLocation()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d