public class COSUtils extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOGGER |
Constructor and Description |
---|
COSUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
closeDocumentQuietly(COSDocument document)
Close the given Document.
|
static void |
closeDocumentQuietly(PDDocument document)
Close the given Document.
|
static COSArray |
getAsArray(COSBase cbase,
COSDocument cDoc)
Return the COSBase object as COSArray if the COSBase object is an instance of COSArray or a reference to a
COSArray object.
|
static COSDictionary |
getAsDictionary(COSBase cbase,
COSDocument cDoc)
Return the COSBase object as COSDictionary if the COSBase object is an instance of COSDictionary or a reference
to a COSDictionary object.
|
static Float |
getAsFloat(COSBase cbase,
COSDocument cDoc)
Return the COSBase object as Float if the COSBase object is an instance of COSFloat or a reference to a COSFloat
object.
|
static Integer |
getAsInteger(COSBase cbase,
COSDocument cDoc)
Return the COSBase object as Integer if the COSBase object is an instance of COSInteger or a reference to a
COSInteger object.
|
static COSStream |
getAsStream(COSBase cbase,
COSDocument cDoc)
Return the COSBase object as COSStream if the COSBase object is an instance of COSStream or a reference to a
COSStream object.
|
static String |
getAsString(COSBase cbase,
COSDocument cDoc)
Return the COSBase object as COSString if the COSBase object is an instance of COSString or a reference to a
COSString object.
|
static boolean |
isArray(COSBase elt,
COSDocument doc)
return true if the elt is a COSArray or a reference to a COSArray
|
static boolean |
isDictionary(COSBase elt,
COSDocument doc)
return true if the elt is a COSDictionary or a reference to a COSDictionary
|
static boolean |
isFloat(COSBase elt,
COSDocument doc)
return true if the elt is a COSInteger or a reference to a COSInteger
|
static boolean |
isInteger(COSBase elt,
COSDocument doc)
return true if the elt is a COSInteger or a reference to a COSInteger
|
static boolean |
isNumeric(COSBase elt,
COSDocument doc)
return true if elt is COSInteger or COSFloat
|
static boolean |
isStream(COSBase elt,
COSDocument doc)
return true if the elt is a COSStream or a reference to a COSStream
|
static boolean |
isString(COSBase elt,
COSDocument doc)
return true if the elt is a COSString or a reference to a COSString
|
public static boolean isDictionary(COSBase elt, COSDocument doc)
elt
- doc
- public static boolean isString(COSBase elt, COSDocument doc)
elt
- doc
- public static boolean isStream(COSBase elt, COSDocument doc)
elt
- doc
- public static boolean isInteger(COSBase elt, COSDocument doc)
elt
- doc
- public static boolean isNumeric(COSBase elt, COSDocument doc)
elt
- doc
- public static boolean isFloat(COSBase elt, COSDocument doc)
elt
- doc
- public static boolean isArray(COSBase elt, COSDocument doc)
elt
- doc
- public static COSArray getAsArray(COSBase cbase, COSDocument cDoc)
cbase
- cDoc
- public static String getAsString(COSBase cbase, COSDocument cDoc)
cbase
- cDoc
- public static COSDictionary getAsDictionary(COSBase cbase, COSDocument cDoc)
cbase
- cDoc
- public static COSStream getAsStream(COSBase cbase, COSDocument cDoc)
cbase
- cDoc
- public static Float getAsFloat(COSBase cbase, COSDocument cDoc)
cbase
- cDoc
- public static Integer getAsInteger(COSBase cbase, COSDocument cDoc)
cbase
- cDoc
- public static void closeDocumentQuietly(COSDocument document)
document
- public static void closeDocumentQuietly(PDDocument document)
document
- Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.