sk::io::FileOutputStream Class Reference

#include <FileOutputStream.h>

Inheritance diagram for sk::io::FileOutputStream:

sk::io::FileStreamCoupler< FileDescriptorOutputStream > sk::io::FileDescriptorOutputStream sk::io::AbstractOutputStream sk::io::OutputStream sk::util::Object

List of all members.

Public Member Functions

 FileOutputStream (const sk::io::File &file)
 FileOutputStream (const sk::util::String &name)
 FileOutputStream (const sk::util::String &name, bool append)
virtual ~FileOutputStream ()
const sk::util::Class getClass () const
 Returns the object's class.
sk::io::FilegetFile () const
const sk::io::FileDescriptorgetFileDescriptor () const
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.
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.
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.


Constructor & Destructor Documentation

sk::io::FileOutputStream::FileOutputStream ( const sk::io::File file  ) 

sk::io::FileOutputStream::FileOutputStream ( const sk::util::String name  ) 

sk::io::FileOutputStream::FileOutputStream ( const sk::util::String name,
bool  append 
)

virtual sk::io::FileOutputStream::~FileOutputStream (  )  [virtual]


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.

void sk::io::FileDescriptorOutputStream::close (  )  [virtual, inherited]

Closes this output stream and releases any system resources associated with this stream.

Implements sk::io::OutputStream.

void sk::io::AbstractOutputStream::flush (  )  [virtual, inherited]

Flushes this output stream and forces any buffered output bytes to be written out.

Implements sk::io::OutputStream.

Reimplemented in sk::io::BufferedOutputStream, and sk::io::DelegatingOutputStream.

const sk::util::Class sk::io::FileOutputStream::getClass (  )  const [virtual]

Returns the object's class.

Reimplemented from sk::io::FileDescriptorOutputStream.

sk::io::File& sk::io::FileStreamCoupler< FileDescriptorOutputStream >::getFile (  )  const [inherited]

const sk::io::FileDescriptor& sk::io::FileDescriptorOutputStream::getFileDescriptor (  )  const [inherited]

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 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 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]

Writes the specified byte to this output stream.

Implements sk::io::OutputStream.

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::FileDescriptorOutputStream::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.


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