#include <DataOutputStream.h>

Public Member Functions | |
| DataOutputStream (sk::io::OutputStream &stream) | |
| virtual | ~DataOutputStream () |
| const sk::util::Class | getClass () const |
| Returns the object's class. | |
| void | writeInt (int value) |
| Writes an int value, which is comprised of four bytes, to the output stream. | |
| void | writeLong (long long value) |
| Writes a long value, which is comprised of eight bytes, to the output stream. | |
| void | writeShort (short value) |
| Writes two bytes to the output stream to represent the value of the argument. | |
| void | writeDouble (double value) |
| Writes a double value, which is comprised of eight bytes, to the output stream. | |
| void | writeFloat (float value) |
| Writes a float value, which is comprised of four bytes, to the output stream. | |
| void | writeChar (char value) |
| Writes to the output stream the eight low- order bits of the argument. | |
| void | writeChars (const std::string &value) |
| Writes a string to the output stream. | |
| void | writeFully (const std::vector< char > &value) |
| Writes to the output stream all the bytes of the vector. | |
| sk::io::OutputStream & | getOutputStream () const |
| void | close () |
| Closes this output stream and releases any system resources associated with this stream. | |
| void | flush () |
| Flushes this output stream and forces any buffered output bytes to be written out. | |
| int | write (const char *buffer, int offset, int length) |
| Writes length bytes from the specified byte array starting from offset to this stream. Returns the number of bytes written to this stream. | |
| int | write (const std::vector< char > &data, int offset) |
| Writes length bytes from the specified vector of chars starting from offset to this stream. Returns the number of bytes written to this stream. | |
| int | write (const std::vector< char > &data) |
| Writes length bytes from the specified vector of chars to this stream. Returns the number of bytes written to this stream. | |
| int | write (char byte) |
| Writes the specified byte to this output stream. | |
| virtual Object & | self () |
| Returns a reference to itself. | |
| virtual const Object & | self () const |
| Object * | clone () const |
| Instantiates another object of the same class as a copy of itself. | |
| virtual uint64_t | getId () const |
| Returns a unique object id. | |
| virtual const String | toString () const |
| Returns a string representation of the object. By default, it returns the object's class and the objects's id. | |
| virtual const String | inspect () const |
| Returns a string containing human-readable representation of the object. | |
| sk::io::DataOutputStream::DataOutputStream | ( | sk::io::OutputStream & | stream | ) |
| virtual sk::io::DataOutputStream::~DataOutputStream | ( | ) | [virtual] |
| Object* sk::util::Object::clone | ( | ) | const [inherited] |
Instantiates another object of the same class as a copy of itself.
Reimplemented in sk::rt::logger::Destination, and sk::util::String.
| void sk::io::DelegatingOutputStream::close | ( | ) | [virtual, inherited] |
Closes this output stream and releases any system resources associated with this stream.
Implements sk::io::OutputStream.
Reimplemented in sk::io::BufferedOutputStream.
| void sk::io::DelegatingOutputStream::flush | ( | ) | [virtual, inherited] |
Flushes this output stream and forces any buffered output bytes to be written out.
Reimplemented from sk::io::AbstractOutputStream.
Reimplemented in sk::io::BufferedOutputStream.
| const sk::util::Class sk::io::DataOutputStream::getClass | ( | ) | const [virtual] |
| virtual uint64_t sk::util::Object::getId | ( | ) | const [virtual, inherited] |
| sk::io::OutputStream& sk::io::DelegatingOutputStream::getOutputStream | ( | ) | const [inherited] |
| virtual const String sk::util::Object::inspect | ( | ) | const [virtual, inherited] |
Returns a string containing human-readable representation of the object.
Reimplemented in sk::rt::thread::AbstractLock, sk::rt::Thread, sk::util::Class, sk::util::Container, sk::util::slot::Pointer< T, Mixin >, sk::util::slot::Reference< T, Mixin >, sk::util::String, and sk::util::StringArray.
| virtual const Object& sk::util::Object::self | ( | ) | const [virtual, inherited] |
Reimplemented in sk::util::String.
| virtual Object& sk::util::Object::self | ( | ) | [virtual, inherited] |
| virtual const String sk::util::Object::toString | ( | ) | const [virtual, inherited] |
Returns a string representation of the object. By default, it returns the object's class and the objects's id.
Reimplemented in sk::rt::logger::Level, sk::rt::thread::State, sk::util::Boolean, sk::util::Class, sk::util::Container, sk::util::Pathname, and sk::util::String.
| int sk::io::AbstractOutputStream::write | ( | char | byte | ) | [virtual, inherited] |
| int sk::io::AbstractOutputStream::write | ( | const std::vector< char > & | data | ) | [virtual, inherited] |
Writes length bytes from the specified vector of chars to this stream. Returns the number of bytes written to this stream.
Implements sk::io::OutputStream.
| int sk::io::AbstractOutputStream::write | ( | const std::vector< char > & | data, | |
| int | offset | |||
| ) | [virtual, inherited] |
Writes length bytes from the specified vector of chars starting from offset to this stream. Returns the number of bytes written to this stream.
Implements sk::io::OutputStream.
| int sk::io::DelegatingOutputStream::write | ( | const char * | buffer, | |
| int | offset, | |||
| int | length | |||
| ) | [virtual, inherited] |
Writes length bytes from the specified byte array starting from offset to this stream. Returns the number of bytes written to this stream.
Implements sk::io::AbstractOutputStream.
Reimplemented in sk::io::BufferedOutputStream.
| void sk::io::DataOutputStream::writeChar | ( | char | value | ) | [virtual] |
Writes to the output stream the eight low- order bits of the argument.
Implements sk::io::DataOutput.
| void sk::io::DataOutputStream::writeChars | ( | const std::string & | value | ) | [virtual] |
| void sk::io::DataOutputStream::writeDouble | ( | double | value | ) | [virtual] |
Writes a double value, which is comprised of eight bytes, to the output stream.
Implements sk::io::DataOutput.
| void sk::io::DataOutputStream::writeFloat | ( | float | value | ) | [virtual] |
Writes a float value, which is comprised of four bytes, to the output stream.
Implements sk::io::DataOutput.
| void sk::io::DataOutputStream::writeFully | ( | const std::vector< char > & | value | ) | [virtual] |
| void sk::io::DataOutputStream::writeInt | ( | int | value | ) | [virtual] |
Writes an int value, which is comprised of four bytes, to the output stream.
Implements sk::io::DataOutput.
| void sk::io::DataOutputStream::writeLong | ( | long long | value | ) | [virtual] |
Writes a long value, which is comprised of eight bytes, to the output stream.
Implements sk::io::DataOutput.
| void sk::io::DataOutputStream::writeShort | ( | short | value | ) | [virtual] |
Writes two bytes to the output stream to represent the value of the argument.
Implements sk::io::DataOutput.
1.5.8