Package uk.ac.starlink.connect
Interface Leaf
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description uk.ac.starlink.util.DataSource
getDataSource()
Returns a data source (replayable input stream) containing the data content of this leaf.java.io.OutputStream
getOutputStream()
Returns an output stream from this leaf.
-
-
-
Method Detail
-
getDataSource
uk.ac.starlink.util.DataSource getDataSource() throws java.io.IOException
Returns a data source (replayable input stream) containing the data content of this leaf.- Returns:
- data source
- Throws:
java.io.FileNotFoundException
- if the file named by this leaf does not existjava.io.IOException
- if some other error occurs
-
getOutputStream
java.io.OutputStream getOutputStream() throws java.io.IOException
Returns an output stream from this leaf. Whether the file named by this leaf already exists or not, the returned stream should effectively write to a new file (deleting an existing one if necessary).- Returns:
- output stream writing to the file named by this leaf
- Throws:
java.io.IOException
- if there's some error
-
-