org.freehep.postscript
Class PSString
java.lang.Object
org.freehep.postscript.PSObject
org.freehep.postscript.PSComposite
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
Fields inherited from class org.freehep.postscript.PSObject |
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
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.