API Documentation: Class DataFileUtils
| Name | DataFileUtils |
| Package | com.mckoi.data |
Static utility methods and classes for managing data in a DataFile.
Constructors Summary
| DataFileUtils() |
Methods Summary
| static | InputStream | asInputStream(DataFile df) | |
| static | OutputStream | asOutputStream(DataFile df) | |
| static | DataInputStream | asDataInputStream(DataFile df) | |
| static | DataOutputStream | asDataOutputStream(DataFile df) |
Constructor Details
DataFileUtils()
Method Details
InputStream asInputStream(DataFile df)
Creates an InputStream object wrapped around a DataFile object. This is a simple wrapper around a DataFile object. Any access on the underlying DataFile object while the input stream is in use will lead to undefined behaviour.
Note that this is only intended as a short lived object for reading information from a DataFile.
OutputStream asOutputStream(DataFile df)
Creates an OutputStream object wrapped around a DataFile object. This is a simple wrapper around a DataFile object. Any access on the underlying DataFile object while the output stream is in use will lead to undefined behaviour.
Note that this is only intended as a short lived object for entering into a DataFile.
DataInputStream asDataInputStream(DataFile df)
Creates and returns a DataInputStream object wrapped around a DataFile object. Any access on the underlying DataFile object while the input stream is in use will lead to undefined behaviour.
Note that this is only intended as a short lived object for reading information from a DataFile.
DataOutputStream asDataOutputStream(DataFile df)
Creates and returns a DataOutputStream object wrapped around a DataFile object. Any access on the underlying DataFile object while the output stream is in use will lead to undefined behaviour.
Note that this is only intended as a short lived object for entering into a DataFile.
