Package coneforest.psylla.core
Class PsyWriter
- java.lang.Object
-
- coneforest.psylla.core.PsyWriter
-
- All Implemented Interfaces:
PsyCloseable
,PsyConvertableToName
,PsyConvertableToString
,PsyFlushable
,PsyObject
,PsyWritable
- Direct Known Subclasses:
PsyFileWriter
,PsyStringWriter
public class PsyWriter extends Object implements PsyCloseable, PsyFlushable, PsyWritable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
psyClose()
Close this object.void
psyFlush()
Flush this object.void
psyWrite(PsyInteger oCharacter)
Writes a Ψ-integer
character to this object.void
psyWriteString(PsyStringy oString)
Writes a Ψ-stringy
string of characters to this object.Writer
writer()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
-
-
-
Constructor Detail
-
PsyWriter
public PsyWriter(Writer writer)
-
-
Method Detail
-
writer
public Writer writer()
-
psyWrite
public void psyWrite(PsyInteger oCharacter) throws PsyException
Description copied from interface:PsyWritable
Writes a Ψ-integer
character to this object.- Specified by:
psyWrite
in interfacePsyWritable
- Parameters:
oCharacter
- a Ψ-integer
object representing a character to be written.- Throws:
PsyException
- when an error occurs during write.
-
psyWriteString
public void psyWriteString(PsyStringy oString) throws PsyException
Description copied from interface:PsyWritable
Writes a Ψ-stringy
string of characters to this object.- Specified by:
psyWriteString
in interfacePsyWritable
- Parameters:
oString
- a Ψ-stringy
object representing a string to be written.- Throws:
PsyException
- when an error occurs during write.
-
psyFlush
public void psyFlush() throws PsyException
Description copied from interface:PsyFlushable
Flush this object.- Specified by:
psyFlush
in interfacePsyFlushable
- Throws:
PsyException
- when error occurs during flush.
-
psyClose
public void psyClose() throws PsyException
Description copied from interface:PsyCloseable
Close this object.- Specified by:
psyClose
in interfacePsyCloseable
- Throws:
PsyException
- when error occured during closing.
-
-