public class FileItem
extends Object
Provides a file item class.
-
Constructor Summary
Constructors
Create a file item object with the given name and data
-
Method Summary
byte[]
Return the string representation of the object.
-
Constructor Details
-
FileItem
public FileItem(String name,
byte[] data)
Create a file item object with the given name and data
- Parameters:
name
- the file name
data
- the file data
-
Method Details
-
getName
Return the file name.
- Returns:
- the file name
-
getData
public byte[] getData()
Return the file data.
- Returns:
- the file data
-
toString
Return the string representation of the object.
- Overrides:
toString
in class Object
- Returns:
- the string representation of the object