|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Representa un archivo que se anexa a un documento.
Method Summary | |
byte[] |
getData()
|
InputStream |
getDataAsStream()
|
String |
getFilename()
|
String |
getMimeType()
|
String |
getName()
|
void |
setData(byte[] buf)
Los datos del archivo. |
void |
setDataFromStream(InputStream stream)
Los datos del archivo, manejados como stream. |
void |
setFilename(String name)
El nombre del archivo. |
void |
setMimeType(String type)
El tipo MIME del archivo. |
void |
setName(String name)
El nombre del anexo (es distinto al nombre del archivo). |
void |
writeToFile(File file)
Escribe el contenido del archivo al archivo indicado. |
void |
writeToStream(OutputStream out)
Escribe el contenido del archivo al stream indicado. |
Method Detail |
public void setName(String name)
public String getName()
public void setFilename(String name)
public String getFilename()
public void setData(byte[] buf)
public byte[] getData()
public void setDataFromStream(InputStream stream) throws IOException
IOException
public InputStream getDataAsStream() throws IOException
IOException
public void setMimeType(String type)
public String getMimeType()
public void writeToStream(OutputStream out) throws IOException
IOException
public void writeToFile(File file) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |