Namespace ot::io

Provides flexible input/output abstractions for byte and Unicode character streams as well as concrete classes for reading, writing and manipulating files.




Class Summary
BufferedInputStream A BufferedInputStream wraps another InputStream object and provides buffering as well as support for the mark() and reset() methods.  
BufferedOutputStream A BufferedOutputStream wraps another OutputStream object and provides buffering.  
BufferedReader A BufferedReader wraps another Reader object and provides buffering as well as support for the mark() and reset() methods and a readLine() method.  
BufferedWriter A BufferedWriter wraps another Writer object and provides buffering.  
ByteArrayInputStream An input stream which uses a byte array as its input source.  
ByteArrayOutputStream An output stream that stores the data in an internal buffer.  
Console Class module providing access to the standard console i/o streams: In (stdin), Out (stdout) and Err (stderr).  
File A system-independent representation of file and directory names.  
FileDescriptor An abstract base class representing open file handles.  
FileInputStream An InputStream that uses the contents of a file as its source.  
FileOutputStream An OutputStream that writes bytes to a file.  
FileSystem An abstract base class representing a file system.  
FilterInputStream A base class that derives from InputStream but also contains another InputStream which is used as the input source.  
FilterOutputStream A base class that derives from OutputStream but also contains another OutputStream which is used as the output sink.  
FilterReader A base class that derives from Reader but also contains another Reader which is used as the input source.  
FilterWriter A base class that derives from Writer but also contains another Writer which is used as the output sink.  
InputStream Abstract base class with the ability to read bytes from a data source.  
InputStreamReader An InputStreamReader reads raw bytes from an InputStream and translates them into Unicode characters using an instance of the CodeConverter class to perform the translation.  
OutputStream Abstract base class with the ability to write bytes to a data sink.  
OutputStreamWriter An OutputStreamWriter uses an instance of the CodeConverter class to translate Unicode characters into sequences of bytes and writes these bytes to an underlying OutputStream.  
PrintWriter A Writer with the capability to do basic output formatting for a variety of built-in types, Characters and Strings.  
Reader Abstract class for reading a Unicode character stream.  
ResourceDescriptor An abstract base class used to connect OpenTop with operating system resources such as open files and network sockets.  
StringReader A Reader which uses a String as its input source.  
StringWriter A Writer which collects output characters in a buffer, which can then be used to create a String.  
Writer Abstract base class representing an output stream with the ability to write Unicode characters to a sink.  


Exception Summary
AtomicReadException Thrown when a readAtomic() operation is performed on a Reader, and a prior read() operation left the stream located part-way through a multi-character sequence.  
CharacterCodingException Base class for encoding exceptions.  
ExistingFileException Thrown when attempting to create a file exclusively and the file already exists.  
FileNotFoundException Thrown when attempting to open a file that does not exist.  
InterruptedIOException Thrown when a blocking i/o operation is interrupted.  
IOException Base class for general IO exceptions.  
MalformedInputException Thrown when an InputStreamReader, that has been configured to abort when it encounters encoding errors, reads a malformed byte sequence.  
UnmappableCharacterException Thrown when an OutputStreamWriter, that has been configured to abort when it encounters unmappable characters, writes a Unicode character that cannot be mapped into the target encoding.  
UnsupportedEncodingException Thrown when attempting to construct an InputStreamReader or an OutputStreamWriter for an encoding that is not supported.  


Function Summary
 PrintWriter& endl(PrintWriter& w)
         PrintWriter manipulator that enables endl to be used as an insertion operand.
 PrintWriter& flush(PrintWriter& w)
         PrintWriter manipulator that enables flush to be used as an insertion operand.


Function Detail

endl

PrintWriterendl(PrintWriter& w)
PrintWriter manipulator that enables endl to be used as an insertion operand. For example
   Console::cout() << OT_T("Hello World!") << endl;


flush

PrintWriterflush(PrintWriter& w)
PrintWriter manipulator that enables flush to be used as an insertion operand.




Found a bug or missing feature? Please email us at support@elcel.com

Copyright © 2000-2003 ElCel Technology   Trademark Acknowledgements