Protocol DTextWritable

Adopted by:
DBZipFile, DFile, DGZipFile, DText
Declared in:
DTextWritable.h

Protocol Description

The TextWritable protocol specifies the interface for writing of text to a class implementing this interface.

Direct subinterfaces:
DDrawable
Last modified:
10-Sep-2003 (DTextWritable.h)

Method Index

- (int) error
Return the last error
Returns:
the last error (or 0)
- (BOOL) seek :(unsigned long) offset :(int) origin
Move the current position to a location
Parameters:
offset - the offset from the origin (in bytes)
origin - the origin for the offset (0=begin, 1=current, 2=end)
Returns:
success
- (BOOL) skip :(unsigned long) offset
Skip a number of positions
Parameters:
offset - the number of bytes to skip
Returns:
success
- (unsigned long) tell
Tell the current position in the writeable
Returns:
the current position
- (BOOL) writeChar :(char) ch
Write a character
Parameters:
ch - the character to be written
Returns:
success
- (BOOL) writeLine :(const char *) text
Write a line (appending a '\n')
Parameters:
text - the text to be written as line
Returns:
success
- (BOOL) writeText :(const char *) text
Write a text string
Parameters:
text - the text to be written
Returns:
success

generated 08-Jan-2006 by ObjcDoc 3.0.0