org.freehep.postscript.types
Class PSString
java.lang.Object
  
org.freehep.postscript.types.PSObject
      
org.freehep.postscript.types.PSComposite
          
org.freehep.postscript.types.PSString
- All Implemented Interfaces: 
 - Cloneable, Comparable<Object>, PSDataSource, PSDataTarget, PSTokenizable
 
public class PSString
- extends PSComposite
- implements PSTokenizable, PSDataSource, PSDataTarget, Comparable<Object>
  
Objects for PostScript Processor, as defined in 3.3 Data Types and Objects
- Author:
 
  - Mark Donszelmann
 
 
 
| Fields inherited from class org.freehep.postscript.types.PSObject | 
log, name | 
 
 
 
 
 
 
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)
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<Object>
 
 
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()
             throws CloneNotSupportedException
- Specified by:
 clone in class PSObject
 
- Throws:
 CloneNotSupportedException
 
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 © 2001-2009 FreeHEP. All Rights Reserved.