Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.io.supplier
Class FileIOSupplier

java.lang.Object
  extended by 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

Constructor Summary
FileIOSupplier(File file)
          Create a file I/O supplier
 
Method Summary
 boolean equals(Object obj)
           
 InputStream getInput()
           
 URI getLocation()
          Get the location
 OutputStream getOutput()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileIOSupplier

public FileIOSupplier(File file)
Create a file I/O supplier

Parameters:
file - the file
Method Detail

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)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d