Uses of Class
com.pd4ml.pdf.cos.COSException
-
Packages that use COSException Package Description com.pd4ml.pdf.cos com.pd4ml.pdf.cos.filter com.pd4ml.pdf.cos.parser com.pd4ml.pdf.cos.path com.pd4ml.pdf.cos.security com.pd4ml.pdf.cos.writer -
-
Uses of COSException in com.pd4ml.pdf.cos
Methods in com.pd4ml.pdf.cos that throw COSException Modifier and Type Method Description <T> TCOSArray. accept(ICOSVisitor<T> visitor)abstract <T> TCOSBase. accept(ICOSVisitor<T> visitor)<T> TCOSBoolean. accept(ICOSVisitor<T> visitor)<T> TCOSDictionary. accept(ICOSVisitor<T> visitor)<T> TCOSFloat. accept(ICOSVisitor<T> visitor)<T> TCOSInteger. accept(ICOSVisitor<T> visitor)<T> TCOSName. accept(ICOSVisitor<T> visitor)<T> TCOSNull. accept(ICOSVisitor<T> visitor)<T> TCOSObject. accept(ICOSVisitor<T> visitor)<T> TCOSStream. accept(ICOSVisitor<T> visitor)<T> TCOSString. accept(ICOSVisitor<T> visitor)static COSNumberCOSNumber. get(java.lang.String token)Parses a numeric token exactly as it would appear in PDF content, e.g.byte[]COSStream. getDecodedBytes()Applies every filter in the/Filterchain (in order, feeding each filter's output to the next) and returns the fully decoded bytes.static voidMain. main(java.lang.String[] rawArgs)static COSStringCOSString. parseHex(java.lang.String hex)byte[]COSStream. toByteArray()Convenience fornew String(getDecodedBytes(), ...)-style access to content streams.TICOSVisitor. visitFromArray(COSArray array)TICOSVisitor. visitFromBoolean(COSBoolean bool)TICOSVisitor. visitFromDictionary(COSDictionary dict)TICOSVisitor. visitFromFloat(COSFloat number)TICOSVisitor. visitFromInteger(COSInteger number)TICOSVisitor. visitFromName(COSName name)TICOSVisitor. visitFromNull(COSNull nul)TICOSVisitor. visitFromObject(COSObject object)TICOSVisitor. visitFromStream(COSStream stream)TICOSVisitor. visitFromString(COSString string)Constructors in com.pd4ml.pdf.cos that throw COSException Constructor Description COSFloat(java.lang.String token)Parses a PDF real-number token. -
Uses of COSException in com.pd4ml.pdf.cos.filter
Methods in com.pd4ml.pdf.cos.filter that throw COSException Modifier and Type Method Description byte[]Filter. decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict)Decodesencodedusing this filter's algorithm. -
Uses of COSException in com.pd4ml.pdf.cos.parser
Subclasses of COSException in com.pd4ml.pdf.cos.parser Modifier and Type Class Description classCOSParseExceptionA syntax or structural error encountered while lexing/parsing PDF COS syntax, tagged with the byte offset it occurred at to aid debugging of malformed files. -
Uses of COSException in com.pd4ml.pdf.cos.path
Subclasses of COSException in com.pd4ml.pdf.cos.path Modifier and Type Class Description classCOSPathExceptionRaised for a malformed COS path expression, or (only from the*Strictevaluator methods) when a path cannot be resolved against a particular document -- an intermediate step lands on a node of the wrong kind, a dictionary key is missing, or an array index is out of range. -
Uses of COSException in com.pd4ml.pdf.cos.security
Subclasses of COSException in com.pd4ml.pdf.cos.security Modifier and Type Class Description classCOSSecurityExceptionRaised when a PDF's encryption dictionary names a security handler this API doesn't implement (anything other than the Standard security handler), or when the supplied password is wrong (neither the user nor the owner password could be authenticated). -
Uses of COSException in com.pd4ml.pdf.cos.writer
Subclasses of COSException in com.pd4ml.pdf.cos.writer Modifier and Type Class Description classCOSWriteExceptionACOSExceptionspecific to writing/updating a PDF file's COS layer -- e.g.Methods in com.pd4ml.pdf.cos.writer that throw COSException Modifier and Type Method Description byte[]IncrementalUpdateWriter. finish()Finishes the update: writes the cross-reference table for every object written so far, then a trailer (/Size,/Rootfrom the parsed document's catalog,/Infoif the original had one, a fresh/ID, and/Prevchained back to the base file's ownstartxref), and returns the complete file (original bytes + this update).java.lang.VoidCOSWriter. visitFromArray(COSArray array)java.lang.VoidCOSWriter. visitFromDictionary(COSDictionary dict)java.lang.VoidCOSWriter. visitFromStream(COSStream stream)static byte[]COSDocumentWriter. write(COSDocument document)Writesdocumentas a complete PDF file.voidIncrementalUpdateWriter.CustomBodyWriter. write(COSWriter writer)voidCOSWriter. writeIndirectObject(COSObjectKey key, COSBase value)Writes a complete indirect object:"num gen obj\n<body>\nendobj\n".voidIncrementalUpdateWriter. writeObject(COSBase obj)Writesobjas a complete indirect object using its own (already-assigned, viaIncrementalUpdateWriter.assignNewKey(com.pd4ml.pdf.cos.COSBase)or from the original parse) key, recording its offset for the xref table.voidIncrementalUpdateWriter. writeObjectCustom(COSObjectKey key, IncrementalUpdateWriter.CustomBodyWriter bodyWriter)LikeIncrementalUpdateWriter.writeObject(com.pd4ml.pdf.cos.COSBase), but the object's body is written bybodyWriterinstead of the genericCOSWritervisitor -- for the rare case where a caller needs to track exact byte offsets inside the body itself (a PDF signature's/Contentsand/ByteRangebeing the motivating example).voidCOSWriter. writeTrailerDictionary(COSDictionary trailer)Writes a bare dictionary body (no wrapping object header) -- used for the file trailer.voidCOSWriter. writeValue(COSBase value)Writes one nested value using the reference-vs-inline rule described in the class javadoc.
-