|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.fedict.eid.applet.service.signer.odf.ODFUtil
public class ODFUtil
Helper class to remove some code duplication
| Field Summary | |
|---|---|
static String |
MANIFEST_FILE
|
static String |
MIMETYPE_FILE
|
static String |
MIMETYPE_START
|
static String |
SIGNATURE_ELEMENT
|
static String |
SIGNATURE_FILE
|
static String |
SIGNATURE_NS
|
| Constructor Summary | |
|---|---|
ODFUtil()
|
|
| Method Summary | |
|---|---|
protected static boolean |
checkNodes(NodeList nodes,
List zipEntries)
|
protected static InputStream |
findDataInputStream(InputStream inputStream,
String uri)
Read the zipped data in the ODF package and return the inputstream for a given file / zip entry |
static Document |
getNewDocument()
Return a new DOM Document |
static DocumentBuilder |
getNewDocumentBuilder()
Return a new DOM Document Builder |
protected static List |
getZipEntriesAsList(InputStream odfInputStream)
Get a list of all the files / zip entries in an ODF package |
protected static boolean |
isContentFile(ZipEntry zipEntry)
Checks if a file / zip entry is a content file |
static boolean |
isSelfContained(URL odfUrl)
Check if an ODF package is self-contained, i.e. |
protected static boolean |
isSignatureFile(ZipEntry zipEntry)
Checks if a file / zip entry is a signature file |
protected static boolean |
isToBeSigned(ZipEntry zipEntry)
Check if a file / zip entry is to be signed |
static Document |
loadDocument(InputStream documentInputStream)
Load an XML file from ODF package as a DOM Document |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String MANIFEST_FILE
public static String MIMETYPE_FILE
public static String MIMETYPE_START
public static String SIGNATURE_FILE
public static String SIGNATURE_NS
public static String SIGNATURE_ELEMENT
| Constructor Detail |
|---|
public ODFUtil()
| Method Detail |
|---|
public static Document loadDocument(InputStream documentInputStream)
throws ParserConfigurationException,
SAXException,
IOException
documentInputStream -
ParserConfigurationException
SAXException
IOException
public static Document getNewDocument()
throws ParserConfigurationException
ParserConfigurationException
public static DocumentBuilder getNewDocumentBuilder()
throws ParserConfigurationException
ParserConfigurationException
protected static InputStream findDataInputStream(InputStream inputStream,
String uri)
throws IOException
inputStream - uri -
IOExceptionprotected static boolean isContentFile(ZipEntry zipEntry)
zipEntry -
protected static boolean isSignatureFile(ZipEntry zipEntry)
zipEntry -
protected static boolean isToBeSigned(ZipEntry zipEntry)
zipEntry -
protected static List getZipEntriesAsList(InputStream odfInputStream)
throws IOException
odfUrl -
IOException
public static boolean isSelfContained(URL odfUrl)
throws IOException,
ParserConfigurationException,
SAXException,
XPathExpressionException
odfUrl -
IOException
ParserConfigurationException
SAXException
XPathExpressionException
protected static boolean checkNodes(NodeList nodes,
List zipEntries)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||