Class FileContent
- java.lang.Object
-
- org.silverpeas.processmanager.service.FileContent
-
- All Implemented Interfaces:
Serializable
public class FileContent extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileContent()Default constructor.FileContent(String name, byte[] content)Constructor with name and content specifications.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getContent()Return the value of the content property.StringgetName()Return the value of the name property.voidsetContent(byte[] content)Set the value of the content property.voidsetName(String name)Set the value of the name property.StringtoString()
-
-
-
Constructor Detail
-
FileContent
public FileContent()
Default constructor.
-
FileContent
public FileContent(String name, byte[] content)
Constructor with name and content specifications.- Parameters:
name- original name of the filecontent- binary data, already loaded, content of the file.
-
-
Method Detail
-
getName
public String getName()
Return the value of the name property.- Returns:
- the value of name.
-
setName
public void setName(String name)
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
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-