|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.processManager.ejb.FileContent
public class FileContent
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.
Constructor Summary | |
---|---|
FileContent()
Default constructor. |
|
FileContent(String name,
byte[] content)
Constructor with name and content specifications. |
Method Summary | |
---|---|
byte[] |
getContent()
Return the value of the content property. |
String |
getName()
Return the value of the name property. |
void |
setContent(byte[] content)
Set the value of the content property. |
void |
setName(String name)
Set the value of the name property. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileContent()
public FileContent(String name, byte[] content)
name
- original name of the filecontent
- binary data, already loaded, content of the file.Method Detail |
---|
public String getName()
public void setName(String name)
name
- the new value of name.public byte[] getContent()
null
, may be an empty
array).public void setContent(byte[] content)
content
- the new value of content.public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |