Class FileContent
java.lang.Object
org.silverpeas.processmanager.service.FileContent
- All Implemented Interfaces:
Serializable
Object dealing with a file and its content loaded into memory in a array of
bytes. A property specifies the original name of the file.
- Version:
- $Revision$
- Author:
- $Author$
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.FileContent(String name, byte[] content) Constructor with name and content specifications. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Return the value of the content property.getName()Return the value of the name property.voidsetContent(byte[] content) Set the value of the content property.voidSet the value of the name property.toString()
-
Constructor Details
-
FileContent
public FileContent()Default constructor. -
FileContent
Constructor with name and content specifications.- Parameters:
name- original name of the filecontent- binary data, already loaded, content of the file.
-
-
Method Details
-
getName
Return the value of the name property.- Returns:
- the value of name.
-
setName
Set the value of the name property.- Parameters:
name- the new value of name.
-
getContent
public byte[] getContent()Return the value of the content property.- Returns:
- the value of content (never
null, may be an empty array).
-
setContent
public void setContent(byte[] content) Set the value of the content property.- Parameters:
content- the new value of content.
-
toString
-