Class Data.StringData
java.lang.Object
com.codename1.io.Data.StringData
- 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
-
StringData
-
StringData
-
-
Method Details
-
appendTo
Description copied from interface:DataAppends 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
Description copied from interface:DataGets the size of the data content.
Returns
Size of content in bytes.
Throws
IOException
- Specified by:
getSizein interfaceData- Throws:
IOException
-