public void readObject(java.io.File source) throws java.io.IOException, java.lang.ClassCastException
source
obtaining its file
separator
(used if more than one file was
read) and the file
data
.
Both file separator and data can be obtained by using FileToBytesExporter.getFileSeparator()
and
FileToBytesExporter.getReadData()
java.io.IOException
- if the file was
not found
, there was
an error recovering the data or it is a
directory
.
java.lang.ClassCastException
- if the
retrieved data is not a String[]
FileError
- if the obtained hash from file is not the same as the
generated
one from the data extracted from the file.
public void readObject(java.io.InputStream source) throws java.io.IOException, java.lang.ClassCastException
source
obtaining its file
separator
(used if more than one file was
read) and the file
data
.
Both file separator and data can be obtained by using FileToBytesExporter.getFileSeparator()
and
FileToBytesExporter.getReadData()
java.io.IOException
- if there was an error
recovering the data.
java.lang.ClassCastException
- if the
retrieved data is not a String[]
FileError
- if the obtained hash from file is not the same as the
generated
one from the data extracted from the file.
public void writeObject(java.io.File destination) throws java.io.IOException
destination
. If it does
not exists, com.github.javinator9889.exporter.FileToBytesExporter
will create all the
necessary directories in order to work as expected.
java.io.IOException
- when there is an
error by creating necessary directories or by writing
the file.
public void writeObject(java.io.OutputStream destination) throws java.io.IOException
destination
. If it does
not exists, com.github.javinator9889.exporter.FileToBytesExporter
will create all the
necessary directories in order to work as expected.
java.io.IOException
- when there is an
error while writing the file.
java.lang.Object lock
java.lang.String mFilename
java.lang.String mFileSeparator
boolean mMustOpenSourcePath
java.util.ArrayList<java.lang.String> mPath
java.lang.String mReadData