Smart CODE | |
Your on-line guide to the generated code |
The C and C++ InputStream/OutputStream software is intended for thin-client interfaces and
applications that need access to Internet resources. It has been modelled
on the Java(TM) java.io classes, to facilitate the transition
to Java, and to maintain a common API across all targets.
Note that the C and C++ implementations are sufficient for their purpose, and anything written to these interfaces should transfer easily to Java. They are not full implementations of the Java API, and are not intended for recoding Java applications in C. |
Overview of Language Differences | ||
---|---|---|
Language | Usage | Comments |
Java |
|
|
C++ |
|
|
C |
|
A similar example for Input and Output streams shows how the data might be processed inthe above example.
#include <Ustreams.h>
Constructor/s | |
---|---|
C++ |
|
C |
BufferedInputStream * newBufferedInputStreamSized( InputStream * i, int bufsize) BufferedInputStream * newBufferedInputStream( InputStream * i) |
Public Methods | |
BufferedInputStream is used internally by DataInputStream and by
InputData.
BufferedOutputStream
BufferedOutputStream allows you to write to an output buffer that flushes
to the outout file descriptor when the buffer is full,or when you explicitly
call the flush() method.
Constructor/s | |
---|---|
C++ |
|
C |
BufferedOutputStream * newBufferedOutputStreamSized( OutputStream * o, int bufsize) BufferedOutputStream * newBufferedOutputStream( OutputStream * o) |
Public Methods | |
Constructor/s | |
---|---|
C++ |
|
C |
DataInputStream * newDataInputStream( InputStream * i) |
Public Methods | |
Constructor/s | |
---|---|
C++ |
|
C |
FileInputStream * newFileInputStream( char * filename) |
Public Methods | |
Constructor/s | |
---|---|
C++ |
|
C |
FileOutputStream * newFileOutputStreamFull( char * f, int a, int rw) FileOutputStream * newFileOutputStream( char * f) |
Public Methods | |
Constructor/s | |
---|---|
C++ |
|
C |
InputData * newInputData( InputStream* i) |
Public Methods | |
Constructor/s | |
---|---|
C++ |
|
C |
StdInputStream * newStdInputStream( int i) StdInputStream * newStdInputStream_anon() |
Public Methods | |
Constructor/s | |
---|---|
C++ |
|
C |
StdOutputStream * newStdOutputStream( int i) StdOutputStream * newStdOutputStream_anon() |
Public Methods | |
Constructor/s | |
---|---|
C++ |
|
C |
TempFileOutputStream * newTempFileOutputStream() |
Public Methods | |
PrintWriter
is a stub version of the Java PrintWriter class, and is used to string-serialize the group data before it sent to and from the server.
Constructor/s | |
---|---|
C++ |
|
C |
PrintWriter * newPrintWriter( OutputStream * o) |
Public Methods | |