public final class OfficeAnalizer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getOOXMLMimeType(java.io.InputStream contentTypeIs)
Recupera el MimeType del XML "[Content_Type].xml" de un OOXML.
|
static boolean |
isODFDocument(byte[] document)
Indica si un fichero tiene la estructura de un documento ODF.
|
static boolean |
isOOXMLDocument(byte[] document)
Indica si un fichero tiene la estructura de un documento OOXML.
|
public static boolean isOOXMLDocument(byte[] document) throws java.io.IOException
document
- Fichero a analizartrue
si el fichero era un OOXML, false
en caso contrario.java.io.IOException
- SI ocurren problemas leyendo el ficheropublic static java.lang.String getOOXMLMimeType(java.io.InputStream contentTypeIs)
contentTypeIs
- XML "[Content_Type].xml".null
.public static boolean isODFDocument(byte[] document) throws java.io.IOException
document
- Fichero a analizartrue
si el fichero era un ODF, false
en caso contrario.java.io.IOException
- Si ocurren problemas leyendo el fichero