Package org.verapdf.gf.model.impl.cos
Class GFCosStream
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.cos.GFCosObject
-
- org.verapdf.gf.model.impl.cos.GFCosDict
-
- org.verapdf.gf.model.impl.cos.GFCosStream
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOS_STREAM_TYPEType name for GFCosStreamstatic StringF_DECODE_PARMSstatic StringFILTERS-
Fields inherited from class org.verapdf.gf.model.impl.cos.GFCosDict
COS_DICT_TYPE, KEYS, METADATA, VALUES
-
Fields inherited from class org.verapdf.gf.model.impl.cos.GFCosObject
baseObject, cosDocument, MAX_NUMBER_OF_ELEMENTS
-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Constructor Description GFCosStream(COSStream stream)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetendstreamKeywordEOLCompliant()true if spacings around keywords 'endstream' comply to the PDF/A standardStringgetF()represents value of F key or null if stream does not contain this keyStringgetFDecodeParms()represents value of FDecodeParms key or null if stream does not contain this keyStringgetFFilter()represents value of FFilter key or null if stream does not contain this keyLonggetLength()length of the streamList<? extends Object>getLinkedObjects(String link)LonggetrealLength()real length of streamBooleangetstreamKeywordCRLFCompliant()true if the spacing around stream complies with the PDF/A requirements-
Methods inherited from class org.verapdf.gf.model.impl.cos.GFCosDict
getkeysString, getsize
-
Methods inherited from class org.verapdf.gf.model.impl.cos.GFCosObject
getFromValue
-
Methods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.verapdf.model.coslayer.CosDict
getkeysString, getsize
-
Methods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
-
-
-
Field Detail
-
FILTERS
public static final String FILTERS
- See Also:
- Constant Field Values
-
COS_STREAM_TYPE
public static final String COS_STREAM_TYPE
Type name for GFCosStream- See Also:
- Constant Field Values
-
F_DECODE_PARMS
public static final String F_DECODE_PARMS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFCosStream
public GFCosStream(COSStream stream)
Default constructor- Parameters:
stream- greenfield COSStream
-
-
Method Detail
-
getLength
public Long getLength()
length of the stream
-
getrealLength
public Long getrealLength()
Description copied from interface:CosStreamreal length of stream- Specified by:
getrealLengthin interfaceCosStream
-
getF
public String getF()
Description copied from interface:CosStreamrepresents value of F key or null if stream does not contain this key
-
getFFilter
public String getFFilter()
Description copied from interface:CosStreamrepresents value of FFilter key or null if stream does not contain this key- Specified by:
getFFilterin interfaceCosStream- Returns:
- string representation of filters for external file
-
getFDecodeParms
public String getFDecodeParms()
Description copied from interface:CosStreamrepresents value of FDecodeParms key or null if stream does not contain this key- Specified by:
getFDecodeParmsin interfaceCosStream- Returns:
- string representation of decode parameters for filters applied to external file
-
getstreamKeywordCRLFCompliant
public Boolean getstreamKeywordCRLFCompliant()
true if the spacing around stream complies with the PDF/A requirements- Specified by:
getstreamKeywordCRLFCompliantin interfaceCosStream
-
getendstreamKeywordEOLCompliant
public Boolean getendstreamKeywordEOLCompliant()
Description copied from interface:CosStreamtrue if spacings around keywords 'endstream' comply to the PDF/A standard- Specified by:
getendstreamKeywordEOLCompliantin interfaceCosStream
-
getLinkedObjects
public List<? extends Object> getLinkedObjects(String link)
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGFCosDict- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
-