All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.roguewave.vsj.PortableOutputStream
Data written from PortableOutputStream is stored in a human-readable format which is portable among machines of different architectures.
Each method that writes data is meant to be used in conjuction with a specific RWpistream (C++) or PortableInputStream (Java) method to read the data. These correspondences are given in the method descriptions below.
With regard to naming conventions, you'll note that C++ methods in RWpostream that overload the insertion operator are provided here as methods with names beginning with insert. For example,
RWvostream& RWvostream::operator<<(char);is represented here as
VirtualOutputStream PortableOutputStream.insertChar(char);We use widening, where we can, to deal with C++ basic types such as unsigned int that don't have Java counterparts. For example, the method
VirtualOutputStream PortableOutputStream.insertUnsignedInt(long)takes a long since the range of a typical C++ unsigned int contains values that won't necessarily fit into a Java int. While we've done our best to ensure that the types we use can hold any value expected by a C++ program, in the end we cannot guarantee this since ranges of basic types in C++ are implementation defined.
protected int column_
protected PrintWriter ps_
protected SaveContext saveContext_
public PortableOutputStream(OutputStream ostr)
public PortableOutputStream(OutputStream ostr,
SaveContext storetable)
public VirtualOutputStream saveObject(Object data,
ObjectStreamer streamer) throws IOException
Note that ObjectStreamers for certain classes in Tools.h++, JTools, and the JDK are supplied with this product. See the User's Guide.
public SaveContext getSaveContext()
public VirtualOutputStream putString(String data,
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::getString(const char*, size_t) | PortableInputStream.getString(int) |
public VirtualOutputStream putChar(char data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(char) | PortableInputStream.getChar() |
public VirtualOutputStream putUnsignedChar(char data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(unsigned char&) | PortableInputStream.getUnsignedChar() |
public VirtualOutputStream insertChar(char data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(char&) | PortableInputStream.extractChar() |
public VirtualOutputStream putWChar(char data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(wchar_t&) | PortableInputStream.getWChar() |
public VirtualOutputStream insertWChar(char data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(wchar_t&) | PortableInputStream.extractWChar() |
public VirtualOutputStream putUnsigned(char data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(unsigned char&) | PortableInputStream.getUnsignedChar() |
public VirtualOutputStream insertUnsignedChar(char data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(unsigned char&) | PortableInputStream.extractUnsignedChar() |
public VirtualOutputStream insertDouble(double data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(double&) | PortableInputStream.extractDouble() |
public VirtualOutputStream insertFloat(float data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(float&) | PortableInputStream.extractFloat() |
public VirtualOutputStream insertInt(int data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(int&) | PortableInputStream.extractInt() |
public VirtualOutputStream insertUnsignedInt(long data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(unsigned int&) | PortableInputStream.extractUnsignedInt() |
public VirtualOutputStream insertShort(short data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(short&) | PortableInputStream.extractShort() |
public VirtualOutputStream insertUnsignedShort(int data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(unsigned short&) | PortableInputStream.extractUnsignedShort() |
public VirtualOutputStream insertLong(long data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(long&) | PortableInputStream.extractLong() |
public VirtualOutputStream insertUnsignedLong(long data) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::operator>>(unsigned long&) | PortableInputStream.extractUnsignedLong() |
public VirtualOutputStream putChars(char data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(char*, size_t) | PortableInputStream.getChars(int) |
public VirtualOutputStream putWChars(char data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(wchar_t*, size_t) | PortableInputStream.getWChars(int) |
public VirtualOutputStream putUnsignedChars(char data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(unsigned char*, size_t) | PortableInputStream.getUnsignedChars(int) |
public VirtualOutputStream putDoubles(double data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(double*, size_t) | PortableInputStream.getDoubles(int) |
public VirtualOutputStream putFloats(float data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(float*, size_t) | PortableInputStream.getFloats(int) |
public VirtualOutputStream putInts(int data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(int*, size_t) | PortableInputStream.getInts(int) |
public VirtualOutputStream putUnsignedInts(long data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(unsigned int*, size_t) | PortableInputStream.getunsignedInt(int) |
public VirtualOutputStream putShorts(short data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(short*, size_t) | PortableInputStream.getShorts(int) |
public VirtualOutputStream putUnsignedShorts(int data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(unsigned short*, size_t) | PortableInputStream.getUnsignedShorts(int) |
public VirtualOutputStream putLongs(long data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(long*, size_t) | PortableInputStream.getLong(int) |
public VirtualOutputStream putUnsignedLongs(long data[],
int count) throws IOException
| Corresponding input functions: | |
| From C++ | From Java |
|---|---|
| RWpistream::get(unsigned long*, size_t) | PortableInputStream.getUnsignedLong(int) |
public VirtualOutputStream flush() throws IOException
protected void putCChar(char c)
protected void putwrap(char c)
protected void putwrap(String s,
int len)
All Packages Class Hierarchy This Package Previous Next Index