Package org.liufree.xmindparser
Class XmindParser
- java.lang.Object
-
- org.liufree.xmindparser.XmindParser
-
public class XmindParser extends Object
- Author:
- liufree liufreeo@gmail.com XmindParser 解析主体 2020/4/27 14:05
-
-
Field Summary
Fields Modifier and Type Field Description static StringxmindLegacyCommentsstatic StringxmindLegacyContentstatic StringxmindZenJson
-
Constructor Summary
Constructors Constructor Description XmindParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandeleteDir(File dir)static StringgetXmindLegacyContent(String xmindFile, String extractFileDir)static StringgetXmindZenContent(String xmindFile, String extractFileDir)static StringparseJson(String xmindFile)解析脑图文件,返回content整合后的内容static ObjectparseObject(String xmindFile)
-
-
-
Field Detail
-
xmindZenJson
public static final String xmindZenJson
- See Also:
- Constant Field Values
-
xmindLegacyContent
public static final String xmindLegacyContent
- See Also:
- Constant Field Values
-
xmindLegacyComments
public static final String xmindLegacyComments
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseJson
public static String parseJson(String xmindFile) throws IOException, org.apache.commons.compress.archivers.ArchiveException, org.dom4j.DocumentException
解析脑图文件,返回content整合后的内容- Parameters:
xmindFile-- Returns:
- Throws:
IOExceptionorg.apache.commons.compress.archivers.ArchiveExceptionorg.dom4j.DocumentException
-
parseObject
public static Object parseObject(String xmindFile) throws org.dom4j.DocumentException, org.apache.commons.compress.archivers.ArchiveException, IOException
- Throws:
org.dom4j.DocumentExceptionorg.apache.commons.compress.archivers.ArchiveExceptionIOException
-
deleteDir
public static boolean deleteDir(File dir)
-
getXmindZenContent
public static String getXmindZenContent(String xmindFile, String extractFileDir) throws IOException, org.apache.commons.compress.archivers.ArchiveException
- Returns:
- Throws:
IOExceptionorg.apache.commons.compress.archivers.ArchiveException
-
getXmindLegacyContent
public static String getXmindLegacyContent(String xmindFile, String extractFileDir) throws IOException, org.apache.commons.compress.archivers.ArchiveException, org.dom4j.DocumentException
- Returns:
- Throws:
IOExceptionorg.apache.commons.compress.archivers.ArchiveExceptionorg.dom4j.DocumentException
-
-