org.freehep.postscript
Class PSString

java.lang.Object
  extended by org.freehep.postscript.PSObject
      extended by org.freehep.postscript.PSComposite
          extended by org.freehep.postscript.PSString
All Implemented Interfaces:
Cloneable, Comparable, PSDataSource, PSDataTarget, PSTokenizable

public class PSString
extends PSComposite
implements PSTokenizable, PSDataSource, PSDataTarget, Comparable

Objects for PostScript Processor, as defined in 3.3 Data Types and Objects

Version:
$Id: PSString.java 8951 2006-09-12 21:44:14Z duns $
Author:
Mark Donszelmann

Field Summary
 
Fields inherited from class org.freehep.postscript.PSComposite
access, EXECUTE_ONLY, NONE, READ_ONLY, UNLIMITED
 
Fields inherited from class org.freehep.postscript.PSObject
name
 
Constructor Summary
  PSString(char[] chars)
           
protected PSString(char[] chars, int index, int count, DSC dsc)
           
  PSString(int n)
           
  PSString(String string)
           
  PSString(String string, DSC dsc)
           
 
Method Summary
 Object clone()
           
 int compareTo(Object o)
           
 PSObject copy()
           
 String cvs()
           
 boolean equals(Object o)
           
 boolean execute(OperandStack os)
           
 char get(int i)
           
 DSC getDSC()
           
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 String getType()
           
 String getValue()
           
 int hashCode()
           
 int indexOf(PSString s)
           
 int read()
           
 void reset()
           
 void set(int i, byte b)
           
 void set(int i, char c)
           
 void set(int i, int b)
           
 PSString set(String s)
           
 int size()
           
 PSString subString(int index)
           
 PSString subString(int index, int count)
           
 PSObject token(boolean packingMode, NameLookup lookup)
           
 String toString()
           
 void write(int b, boolean secure)
           
 
Methods inherited from class org.freehep.postscript.PSComposite
accessExecute, accessRead, accessWrite, changeAccess
 
Methods inherited from class org.freehep.postscript.PSObject
checkAndExecute, error, isExecutable, isLiteral, setExecutable, setLiteral, setName, toPrint
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PSString

protected PSString(char[] chars,
                   int index,
                   int count,
                   DSC dsc)

PSString

public PSString(String string)

PSString

public PSString(String string,
                DSC dsc)

PSString

public PSString(int n)

PSString

public PSString(char[] chars)
Method Detail

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface PSDataSource

getDSC

public DSC getDSC()
Specified by:
getDSC in interface PSDataSource

read

public int read()
         throws IOException
Specified by:
read in interface PSDataSource
Throws:
IOException

reset

public void reset()
           throws IOException
Specified by:
reset in interface PSDataSource
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in interface PSDataTarget

write

public void write(int b,
                  boolean secure)
           throws IOException
Specified by:
write in interface PSDataTarget
Throws:
IOException

token

public PSObject token(boolean packingMode,
                      NameLookup lookup)
               throws IOException,
                      SyntaxException,
                      NameNotFoundException
Specified by:
token in interface PSTokenizable
Throws:
IOException
SyntaxException
NameNotFoundException

execute

public boolean execute(OperandStack os)
Specified by:
execute in class PSObject

getType

public String getType()
Specified by:
getType in class PSObject

size

public int size()

get

public char get(int i)

set

public void set(int i,
                byte b)

set

public void set(int i,
                int b)

set

public void set(int i,
                char c)

set

public PSString set(String s)

subString

public PSString subString(int index,
                          int count)

subString

public PSString subString(int index)

indexOf

public int indexOf(PSString s)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()
Specified by:
hashCode in class PSObject

equals

public boolean equals(Object o)
Specified by:
equals in class PSObject

clone

public Object clone()
Specified by:
clone in class PSObject

copy

public PSObject copy()
Specified by:
copy in class PSObject

cvs

public String cvs()
Specified by:
cvs in class PSObject

toString

public String toString()
Overrides:
toString in class PSObject

getValue

public String getValue()


Copyright © 2000-2006 FreeHEP. All Rights Reserved.