Package org.verapdf.cos
Class COSString
- java.lang.Object
-
- org.verapdf.cos.COSBase
-
- org.verapdf.cos.COSDirect
-
- org.verapdf.cos.COSString
-
public class COSString extends COSDirect
- Author:
- Timur Kamalov
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(ICOSVisitor visitor)voidaccept(IVisitor visitor)static COSObjectconstruct(byte[] initValue)static COSObjectconstruct(byte[] initValue, boolean isHex)static COSObjectconstruct(byte[] initValue, boolean isHex, long hexCount, boolean containsOnlyHex)booleanequals(Object o)byte[]get()longgetHexCount()StringgetHexString()LonggetInteger()StringgetLitString()StringgetPrintableString()DoublegetReal()StringgetString()COSObjTypegetType()inthashCode()booleanisContainsOnlyHex()booleanisHexadecimal()booleanisLiteral()voidset(byte[] value)voidsetContainsOnlyHex(boolean containsOnlyHex)voidsetHex(boolean hex)voidsetHexCount(long hexCount)voidsetString(byte[] value, boolean isHex)booleansetString(String value)protected StringtoHexString()protected StringtoLitString()StringtoString()-
Methods inherited from class org.verapdf.cos.COSDirect
add, at, clearArray, getBoolean, getBooleanKey, getData, getData, getDirect, getDirectBase, getDocument, getIntegerKey, getKey, getKey, getKeySet, getName, getNameKey, getRealKey, getRealStreamSize, getStringKey, getValues, insert, isEndstreamKeywordCRLFCompliant, isIndirect, isStreamKeywordCRLFCompliant, knownKey, mark, remove, removeKey, set, setArray, setArray, setArray, setArrayKey, setArrayKey, setArrayKey, setArrayKey, setBoolean, setBooleanKey, setData, setData, setDirect, setEndstreamKeywordCRLFCompliant, setInteger, setIntegerKey, setKey, setKey, setName, setNameKey, setReal, setRealKey, setRealStreamSize, setStreamKeywordCRLFCompliant, setString, setStringKey, size
-
Methods inherited from class org.verapdf.cos.COSBase
getObjectKey, setObjectKey
-
-
-
-
Method Detail
-
construct
public static COSObject construct(byte[] initValue)
-
construct
public static COSObject construct(byte[] initValue, boolean isHex)
-
construct
public static COSObject construct(byte[] initValue, boolean isHex, long hexCount, boolean containsOnlyHex)
-
accept
public Object accept(ICOSVisitor visitor)
-
getType
public COSObjType getType()
-
getInteger
public Long getInteger()
- Overrides:
getIntegerin classCOSDirect
-
setHex
public void setHex(boolean hex)
-
setString
public void setString(byte[] value, boolean isHex)
-
get
public byte[] get()
-
set
public void set(byte[] value)
-
isLiteral
public boolean isLiteral()
-
isHexadecimal
public boolean isHexadecimal()
-
getHexString
public String getHexString()
-
toHexString
protected String toHexString()
-
toLitString
protected String toLitString()
-
getLitString
public String getLitString()
-
getPrintableString
public String getPrintableString()
-
isContainsOnlyHex
public boolean isContainsOnlyHex()
-
setContainsOnlyHex
public void setContainsOnlyHex(boolean containsOnlyHex)
-
getHexCount
public long getHexCount()
-
setHexCount
public void setHexCount(long hexCount)
-
-