|
Sun Adapter for File API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileApplication
Client Interface for a File Adapter
Method Summary | |
---|---|
byte[] |
getByteArray()
Get the byte array data to be written to a particular file. |
java.lang.String |
getEncoding()
Get the encoding |
java.lang.String |
getText()
Get the String data to be written a particular file. |
void |
setByteArray(byte[] bytes)
Set the byte array data to be written to a particular file. |
void |
setEncoding(java.lang.String encoding)
Set the encoding |
void |
setText(java.lang.String inputText)
Set the String data to be written to a particular file. |
void |
write()
Write String data to a particular file. |
void |
writeBytes()
Write byte[] data to a particular file. |
Method Detail |
---|
void setText(java.lang.String inputText)
inputText
- the data to send to the file, stored as a String
FileApplicationException
- when any error occursjava.lang.String getText()
void setByteArray(byte[] bytes)
bytes
- the data to send to the file, stored as a byte array
FileApplicationException
- when any error occursbyte[] getByteArray()
void write() throws FileApplicationException
FileApplicationException
- when any error occursvoid writeBytes() throws FileApplicationException
FileApplicationException
- when any error occursvoid setEncoding(java.lang.String encoding)
encoding
- java.lang.String getEncoding()
|
Sun Adapter for File API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |