Overview | This Package | All Packages

OverviewThis PackageAll Packages

DataStream Methods

Constructors Description
DataStream Creates a DataStream object.
Methods Description
canRead Determines whether this stream supports reading.
canSeek Determines whether this stream supports seeking.
canWrite Determines whether this stream supports reading.
close Closes this stream.
flush Flushes this stream.
fromComStream Retrieves an IDataStream object for an IStream object.
getComStream Retrieves an IStream for this stream.
getLength Retrieves the length of this stream.
getPosition Retrieves the position of this stream.
read Reads the next byte of data from this stream.
readBoolean Reads a boolean value from this stream.
readByte Reads a byte from this stream.
readBytes Reads a block of bytes from this stream.
readChar Reads a character from this stream.
readChars Reads the specified number of characters from this stream.
readCore Implements the core array read method.
readDouble Reads a double value from this stream.
readDoubles Reads the specified number of doubles from this stream into a double array.
readFloat Reads a float value from this stream.
readFloats Reads a specified number of float values from this stream into a float array.
readInt Reads an integer from this stream.
readInts Reads the specified number of integers from this stream into an integer array.
readLong Reads a long value from this stream.
readLongs Reads the specified number of long integers from this stream into a long array.
readShort Reads a short value from this stream.
readShorts Reads the specified number of short integers from this stream into a short array.
readString Reads a length-prefixed Unicode string from this stream.
readStringChars Reads a Unicode string from this stream.
readStringCharsAnsi Reads an American National Standards Institute (ANSI) string from this stream.
readStringNull Reads a null-terminated Unicode string from this stream.
readStringNullAnsi Reads a null-terminated ANSI string from this stream.
readToEnd Reads all data from the current position to the end of this stream.
readUTF Reads a string from this stream using a length-prefixed UTF-8 format.
setLength Sets the length of this stream.
setPosition Sets the position of this stream.
toComStream Retrieves an IStream object for an IDataStream object.
write Writes bytes of data to this stream.
writeBoolean Writes a boolean value to this stream.
writeByte Writes a byte to this stream.
writeBytes Writes a block of bytes to this stream.
writeChar Writes a character to this stream.
writeChars Writes the contents of the specified character array to this stream.
writeCore Implements the core array write method.
writeDouble Writes a double value to this stream.
writeDoubles Writes the contents of the specified double array to this stream.
writeFloat Writes a float value to this stream.
writeFloats Writes the contents of the specified float array to this stream.
writeInt Writes an integer to this stream.
writeInts Writes the contents of the specified integer array to this stream.
writeLong Writes a long value to this stream.
writeLongs Writes the contents of the specified long integer array to this stream.
writeShort Writes a short value to this stream.
writeShorts Writes the contents of the specified short integer array to this stream.
writeString Writes a length-prefixed Unicode string to this stream.
writeStringChars Writes a Unicode string to this stream.
writeStringCharsAnsi Writes an ANSI string to this stream.
writeStringNull Writes a null-terminated Unicode string to this stream.
writeStringNullAnsi Writes a null-terminated ANSI string to this stream.
writeUTF Writes a string to this stream using a length-prefixed UTF-8 format.