Data.ByteData, Data.FileData, Data.StorageData, Data.StringData| Constructor and Description |
|---|
FileData(File file)
Creates a new Data wrapper for a file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(OutputStream output)
Appends the data's content to an output stream.
|
long |
getSize()
Gets the size of the data content.
|
public FileData(File file)
file - The file to be wrapped.public void appendTo(OutputStream output) throws IOException
appendTo in interface Dataoutput - The output stream to append to.IOExceptionpublic long getSize()
throws IOException
getSize in interface DataIOException