All Packages Class Hierarchy This Package Previous Next Index
Each method that reads data is meant to be used in conjuction with a specific RWvostream or VirtualOutputStream method that wrote the data. These correspondences are given in the method descriptions below.
With regard to naming conventions, you'll note that C++ methods in RWvistream that overload the extraction operator are provided here as method names beginning with extract. For example,
RWvistream& RWvistream::operator>>(char&);is represented here as
char VirtualInputStream.extractChar();Also, because we can't directly pass basic types by reference in Java, the input methods take no parameters but return the value instead. This, in turn, means that we can't overload the method names as we do in C++, thus we include the type in the name as with extractChar(), extractInt(), etc.
Finally, 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
long VirtualInputStream.extractUnsignedInt()returns 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 return can hold any value read from the stream, in the end we cannot guarantee this since ranges of basic types in C++ are implementation defined.
public abstract Object restoreObject(ObjectStreamer streamer) throws IOException
Note that ObjectStreamers for classes in Tools.h++, JTools, and the JDK are supplied with this product. See the User's Guide.
public abstract RestoreContext getRestoreContext()
public abstract String getString(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::putString(const char*, size_t) | VirtualOutputStream.putString(String, int) |
public abstract char extractChar() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(char) | VirtualOutputStream.insertChar(char) |
public abstract char getChar() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(char) | VirtualOutputStream.putChar(char) |
public abstract char extractWChar() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(wchar_t) | VirtualOutputStream.insertWChar(char) |
public abstract char getWChar() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(wchar_t) | VirtualOutputStream.putWChar(char) |
public abstract char extractUnsignedChar() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(unsigned char) | VirtualOutputStream.insertUnsignedChar(char) |
public abstract char getUnsignedChar() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(unsigned char) | VirtualOutputStream.putUnsignedChar(char) |
public abstract double extractDouble() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(double) | VirtualOutputStream.insertDouble(double) |
public abstract float extractFloat() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(float) | VirtualOutputStream.insertFloat(float) |
public abstract int extractInt() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(int) | VirtualOutputStream.insertInt(int) |
public abstract long extractUnsignedInt() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(unsigned int) | VirtualOutputStream.insertUnsignedInt(long) |
public abstract short extractShort() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(short) | VirtualOutputStream.insertShort(short) |
public abstract int extractUnsignedShort() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(unsigned short) | VirtualOutputStream.insertUnsignedShort(int) |
public abstract long extractLong() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(long) | VirtualOutputStream.insertLong(long) |
public abstract long extractUnsignedLong() throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::operator<<(unsigned long) | VirtualOutputStream.insertUnsignedLong(long) |
public abstract char[] getChars(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const char*, size_t) | VirtualOutputStream.putChars(char[], int) |
public abstract char[] getWChars(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const wchar_t*, size_t) | VirtualOutputStream.putWChars(char[], int) |
public abstract char[] getUnsignedChars(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const unsigned char*, size_t) | VirtualOutputStream.putUnsignedChars(char[], int) |
public abstract double[] getDoubles(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const double*, size_t) | VirtualOutputStream.putDoubles(double[], int) |
public abstract float[] getFloats(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const float*, size_t) | VirtualOutputStream.putFloats(float[], int) |
public abstract int[] getInts(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const int*, size_t) | VirtualOutputStream.putInts(int[], int) |
public abstract long[] getUnsignedInts(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const unsigned int*, size_t) | VirtualOutputStream.putunsignedInt(long[], int) |
public abstract short[] getShorts(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const short*, size_t) | VirtualOutputStream.putShorts(short[], int) |
public abstract int[] getUnsignedShorts(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const unsigned short*, size_t) | VirtualOutputStream.putUnsignedShorts(int[], int) |
public abstract long[] getLongs(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const long*, size_t) | VirtualOutputStream.putLong(long[], int) |
public abstract long[] getUnsignedLongs(int count) throws IOException
Corresponding output functions: | |
From C++ | From Java |
---|---|
RWvostream::put(const unsigned long*, size_t) | VirtualOutputStream.putUnsignedLong(long[], int) |
All Packages Class Hierarchy This Package Previous Next Index