| Modifier and Type | Field and Description |
|---|---|
static String |
EDOC_FORMAT_2_0
Current EDoc format constant - 2.0.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getFormatVersionDefault()
Returns default value of the format version
|
static boolean |
isEDoc2(File file,
String name)
Validate given file whether it is EDOC 2.0 document.
|
static EDoc2 |
newEDoc()
Creates a new EDOC 2.0 document.
|
static EDoc2 |
newEDoc(String formatVersion)
Creates a new EDOC document with the defined format version.
|
static EDoc2 |
openEDoc(File file)
Creates EDOC 2.0 document from
File |
static EDoc2 |
openEDoc(InputStream inputStream)
Creates EDOC 2.0 document from
InputStream |
public static final String EDOC_FORMAT_2_0
public static String getFormatVersionDefault() throws EDoc2Exception
EDoc2Exceptionpublic static EDoc2 newEDoc() throws EDoc2Exception
EDoc2Exceptionpublic static EDoc2 newEDoc(String formatVersion) throws EDoc2Exception
EDoc2Exceptionpublic static EDoc2 openEDoc(InputStream inputStream) throws EDoc2Exception
InputStreaminputStream - Input stream of EDOC 2.0 documentEDoc2Exceptionpublic static EDoc2 openEDoc(File file) throws EDoc2Exception
Filefile - File reference of EDOC 2.0 documentEDoc2Exceptionpublic static boolean isEDoc2(File file, String name)
file - EDOC documentname - true if file is EDOC 2.0 document