|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--opencard.opt.iso.fs.CardFileOutputStream
CardFileInputStream together with the accompanying CardFileOutputStream provides access to a CardFile via the familiar Java input/output stream mechanism.
CardFile
,
CardFileInputStream
,
InputStream
Constructor Summary | |
CardFileOutputStream(CardFile file)
Instantiate an OuputStream for the specified CardFile object. |
Method Summary | |
void |
close()
Closes the output stream. |
protected void |
finalize()
Make sure that the output stream is closed on garbage collection. |
void |
flush()
Flushes this CardFileOutputStream and forces any buffered output bytes to be written out. |
void |
write(byte[] b)
Write an array of bytes. |
void |
write(byte[] b,
int offset,
int length)
Write a slice of a byte array. |
void |
write(int b)
Write a byte of data. |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public CardFileOutputStream(CardFile file) throws java.io.IOException, CardIOException, opencard.core.terminal.CardTerminalException
file
- The file to instantiate the OutputStream for.Method Detail |
public void close() throws java.io.IOException, opencard.core.terminal.CardTerminalException
public void flush() throws java.io.IOException, opencard.core.terminal.CardTerminalException
public void write(int b) throws java.io.IOException, opencard.core.terminal.CardTerminalException
b
- The byte to be writtenpublic void write(byte[] b) throws java.io.IOException, opencard.core.terminal.CardTerminalException
b
- The data to be writtenpublic void write(byte[] b, int offset, int length) throws java.io.IOException, opencard.core.terminal.CardTerminalException
b
- The data to be writtenoffset
- The start offset in the data (not in the file!)length
- The number of bytes that are writtenprotected void finalize() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |