|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--com.dctl.j2me.io.HandleOutputStream
Output stream that can use a C handle for outputing information
| Constructor Summary | |
HandleOutputStream(int handle)
Create a new handle output stream with a handle |
|
| Method Summary | |
void |
close()
Close the stream |
void |
flush()
Flush the stream |
static int |
getSTDERRHandle()
Get the handle for stderr |
static int |
getSTDOUTHandle()
Get the handle for stdout |
void |
lock()
Lock the stream. |
void |
unlock()
Unlock the stream. |
void |
write(byte[] buffer)
Write an array of bytes |
void |
write(byte[] buffer,
int offset,
int length)
Write an array of bytes starting at an offset and continuing for length |
void |
write(int b)
Write one byte |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HandleOutputStream(int handle)
handle - The handle to use| Method Detail |
public static int getSTDOUTHandle()
public static int getSTDERRHandle()
public void lock()
lock in interface Lockablepublic void unlock()
unlock in interface Lockable
public void close()
throws IOException
close in class OutputStreamIOException - if there is an error
public void flush()
throws IOException
flush in class OutputStreamIOException - if there is an error
public void write(byte[] buffer)
throws IOException
write in class OutputStreambuffer - The buffer to write
IOException - if there is an error
public void write(byte[] buffer,
int offset,
int length)
throws IOException
write in interface Writablewrite in class OutputStreambuffer - The buffer to writeoffset - The offset to start writinglength - The length to write for
IOException - if there is an error
public void write(int b)
throws IOException
write in interface Writablewrite in class OutputStreamb - The byte to write
IOException - if there is an error
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||