Class PsyWriter
java.lang.Object
coneforest.psylla.core.PsyWriter
- All Implemented Interfaces:
PsyCloseable, PsyFlushable, PsyObject, PsyWritable
- Direct Known Subclasses:
PsyFileWriter, PsyStringWriter
@Type("writer")
public class PsyWriter
extends Object
implements PsyCloseable, PsyFlushable, PsyWritable
The representation of
writer.-
Field Summary
Fields inherited from interface PsyCloseable
PSY_CLOSEFields inherited from interface PsyFlushable
PSY_FLUSHFields inherited from interface PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPEFields inherited from interface PsyWritable
PSY_WRITE, PSY_WRITESTRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpsyClose()Closes this object.voidpsyFlush()Flush thisflushable.voidpsyWrite(PsyInteger oCharacter) Writes anintegercharacter to this object.voidpsyWriteString(PsyString oString) Writes astringstring of characters to this object.writer()Returns the underlying writer.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, psyType, toSyntaxString, typeName
-
Constructor Details
-
PsyWriter
Constructs a newwriterobject wrapping the given writer.- Parameters:
writer- the writer.
-
-
Method Details
-
writer
-
psyWrite
Description copied from interface:PsyWritableWrites anintegercharacter to this object.- Specified by:
psyWritein interfacePsyWritable- Parameters:
oCharacter- anintegerobject representing a character to be written.- Throws:
PsyIOErrorException- when I/O error occurs during write.
-
psyWriteString
Description copied from interface:PsyWritableWrites astringstring of characters to this object.- Specified by:
psyWriteStringin interfacePsyWritable- Parameters:
oString- astringobject representing a string to be written.- Throws:
PsyIOErrorException- when I/O error occurs during write.
-
psyFlush
Description copied from interface:PsyFlushableFlush thisflushable.- Specified by:
psyFlushin interfacePsyFlushable- Throws:
PsyIOErrorException- when I/O error occurs during flush.
-
psyClose
Description copied from interface:PsyCloseableCloses this object.- Specified by:
psyClosein interfacePsyCloseable- Throws:
PsyIOErrorException
-