Class Data.FileData
java.lang.Object
com.codename1.io.Data.FileData
- All Implemented Interfaces:
Data
- Enclosing interface:
Data
-
Nested Class Summary
Nested classes/interfaces inherited from interface Data
Data.ByteData, Data.FileData, Data.StorageData, Data.StringData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(OutputStream output) Appends the data's content to an output stream.longgetSize()Gets the size of the data content.
-
Constructor Details
-
FileData
Creates a new Data wrapper for a file.
Parameters
file: The file to be wrapped.
-
-
Method Details
-
appendTo
Appends the data's content to an output stream.
Parameters
output: The output stream to append to.
Throws
IOException
- Specified by:
appendToin interfaceData- Throws:
IOException
-
getSize
Gets the size of the data content.
Returns
Size of content in bytes.
Throws
IOException
- Specified by:
getSizein interfaceData- Throws:
IOException
-