sk::io::DataInput Class Reference

#include <DataInput.h>

Inheritance diagram for sk::io::DataInput:

sk::util::Object sk::io::DataInputStream

List of all members.

Public Member Functions

virtual int readInt ()=0
 Reads four input bytes and returns an int value.
virtual long long readLong ()=0
 Reads eight input bytes and returns a long long value.
virtual short readShort ()=0
 Reads two input bytes and returns a short value.
virtual char readChar ()=0
 Reads an input char and returns the char value.
virtual double readDouble ()=0
 Reads eight input bytes and returns a double value.
virtual float readFloat ()=0
 Reads four input bytes and returns a float value.
virtual int skipBytes (int number)=0
 Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes.
virtual const sk::util::String readLine ()=0
 Reads the next line of text from the input stream.
virtual std::vector< char > & readFully (std::vector< char > &buffer, int number)=0
 Reads exactly number input bytes and stores them in the specified vector of chars. Blocks if the data is not yet available. Returns a reference to the same vector.
virtual std::vector< char > readFully (int number)=0
 Reads exactly number input bytes and returns them as a vector of chars. Blocks if the data is not yet available.
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 const Class getClass () const
 Returns the object's class.
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.


Member Function Documentation

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.

virtual const Class sk::util::Object::getClass (  )  const [virtual, inherited]

Returns the object's class.

Reimplemented in sk::cppunit::SourcePath, sk::io::AbstractInputStream, sk::io::AbstractOutputStream, sk::io::AbstractPipe, sk::io::AnonymousPipe, sk::io::BufferedInputStream, sk::io::BufferedOutputStream, sk::io::ByteArrayInputStream, sk::io::ByteArrayOutputStream, sk::io::ClosedChannelException, sk::io::DataInputStream, sk::io::DataOutputStream, sk::io::DelegatingInputStream, sk::io::DelegatingOutputStream, sk::io::DelegatingTty, sk::io::EOFException, sk::io::File, sk::io::FileDescriptor, sk::io::FileDescriptorInputStream, sk::io::FileDescriptorOutputStream, sk::io::FileInputStream, sk::io::FileOutputStream, sk::io::IOException, sk::io::Pty, sk::io::TtyDevice, sk::io::TtyFileDescriptor, sk::net::ip4::Address, sk::rt::config::CwdUprootLocator, sk::rt::config::HomeLocator, sk::rt::config::InlineLocator, sk::rt::config::SpotLocator, sk::rt::config::UprootLocator, sk::rt::logger::Level, sk::rt::logger::Spot, sk::rt::logger::Stream, sk::rt::Mutex, sk::rt::ReentrantLock, sk::rt::scope::Aggregator, sk::rt::scope::Controller, sk::rt::Scope, sk::rt::thread::abstract::Factory, sk::rt::thread::AbstractLock, sk::rt::thread::Exit, sk::rt::thread::State, sk::rt::Thread, sk::sys::AbstractProcessListener, sk::sys::DelegatingExecutable, sk::sys::Group, sk::sys::Pipeline, sk::sys::PipeProcess, sk::sys::Process, sk::sys::PtyProcess, sk::sys::User, sk::util::AbstractCollection< T >, sk::util::AbstractList< T >, sk::util::ArrayList< T >, sk::util::Boolean, sk::util::Class, sk::util::Container, sk::util::Exception, sk::util::IllegalStateException, sk::util::IndexOutOfBoundsException, sk::util::InsufficientMemoryException, sk::util::Integer, sk::util::InterruptedException, sk::util::Method, sk::util::MissingResourceException, sk::util::NoSuchElementException, sk::util::NullPointerException, sk::util::NumberFormatException, sk::util::Pathname, sk::util::String, sk::util::StringArray, sk::util::StringHash, sk::util::SystemException, sk::util::UnsupportedOperationException, sk::util::AbstractCollection< T >, and sk::util::AbstractList< T >.

virtual uint64_t sk::util::Object::getId (  )  const [virtual, inherited]

Returns a unique object id.

Reimplemented in sk::rt::Thread.

virtual const String sk::util::Object::inspect (  )  const [virtual, inherited]

virtual char sk::io::DataInput::readChar (  )  [pure virtual]

Reads an input char and returns the char value.

Implemented in sk::io::DataInputStream.

virtual double sk::io::DataInput::readDouble (  )  [pure virtual]

Reads eight input bytes and returns a double value.

Implemented in sk::io::DataInputStream.

virtual float sk::io::DataInput::readFloat (  )  [pure virtual]

Reads four input bytes and returns a float value.

Implemented in sk::io::DataInputStream.

virtual std::vector<char> sk::io::DataInput::readFully ( int  number  )  [pure virtual]

Reads exactly number input bytes and returns them as a vector of chars. Blocks if the data is not yet available.

Implemented in sk::io::DataInputStream.

virtual std::vector<char>& sk::io::DataInput::readFully ( std::vector< char > &  buffer,
int  number 
) [pure virtual]

Reads exactly number input bytes and stores them in the specified vector of chars. Blocks if the data is not yet available. Returns a reference to the same vector.

Implemented in sk::io::DataInputStream.

virtual int sk::io::DataInput::readInt (  )  [pure virtual]

Reads four input bytes and returns an int value.

Implemented in sk::io::DataInputStream.

virtual const sk::util::String sk::io::DataInput::readLine (  )  [pure virtual]

Reads the next line of text from the input stream.

Implemented in sk::io::DataInputStream.

virtual long long sk::io::DataInput::readLong (  )  [pure virtual]

Reads eight input bytes and returns a long long value.

Implemented in sk::io::DataInputStream.

virtual short sk::io::DataInput::readShort (  )  [pure virtual]

Reads two input bytes and returns a short value.

Implemented in sk::io::DataInputStream.

virtual const Object& sk::util::Object::self (  )  const [virtual, inherited]

Reimplemented in sk::util::String.

virtual Object& sk::util::Object::self (  )  [virtual, inherited]

Returns a reference to itself.

Reimplemented in sk::util::String.

virtual int sk::io::DataInput::skipBytes ( int  number  )  [pure virtual]

Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes.

Implemented in sk::io::DataInputStream.

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.


The documentation for this class was generated from the following file:

Generated on Tue Mar 3 12:36:09 2009 for stemkit-cpp by  doxygen 1.5.8