com.intellij.openapi.util
Class JDOMUtil
java.lang.Object
com.intellij.openapi.util.JDOMUtil
public class JDOMUtil
- extends java.lang.Object
|
Field Summary |
static java.lang.String |
ENCODING
|
|
Method Summary |
static boolean |
areDocumentsEqual(org.jdom.Document d1,
org.jdom.Document d2)
|
static boolean |
areElementsEqual(org.jdom.Element e1,
org.jdom.Element e2)
|
static org.jdom.output.XMLOutputter |
createOutputter(java.lang.String lineSeparator)
|
static java.lang.String |
escapeText(java.lang.String text)
|
static org.jdom.Document |
loadDocument(char[] chars,
int length)
|
static org.jdom.Document |
loadDocument(java.io.File file)
|
static org.jdom.Document |
loadDocument(java.io.InputStream stream)
|
static byte[] |
printDocument(org.jdom.Document document,
java.lang.String lineSeparator)
|
static void |
updateFileSet(java.io.File[] oldFiles,
java.lang.String[] newFilePaths,
org.jdom.Document[] newFileDocuments,
java.lang.String lineSeparator)
|
static void |
writeDocument(org.jdom.Document document,
java.io.File file,
java.lang.String lineSeparator)
|
static void |
writeDocument(org.jdom.Document document,
java.io.OutputStream stream,
java.lang.String lineSeparator)
|
static void |
writeDocument(org.jdom.Document document,
java.lang.String filePath,
java.lang.String lineSeparator)
|
static void |
writeDocument(org.jdom.Document document,
java.io.Writer writer,
java.lang.String lineSeparator)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENCODING
public static final java.lang.String ENCODING
- See Also:
- Constant Field Values
JDOMUtil
public JDOMUtil()
areElementsEqual
public static boolean areElementsEqual(org.jdom.Element e1,
org.jdom.Element e2)
areDocumentsEqual
public static boolean areDocumentsEqual(org.jdom.Document d1,
org.jdom.Document d2)
loadDocument
public static org.jdom.Document loadDocument(char[] chars,
int length)
throws java.io.IOException,
org.jdom.JDOMException
- Throws:
java.io.IOException
org.jdom.JDOMException
loadDocument
public static org.jdom.Document loadDocument(java.io.File file)
throws org.jdom.JDOMException,
java.io.IOException
- Throws:
org.jdom.JDOMException
java.io.IOException
loadDocument
public static org.jdom.Document loadDocument(java.io.InputStream stream)
throws org.jdom.JDOMException,
java.io.IOException
- Throws:
org.jdom.JDOMException
java.io.IOException
writeDocument
public static void writeDocument(org.jdom.Document document,
java.lang.String filePath,
java.lang.String lineSeparator)
throws java.io.IOException
- Throws:
java.io.IOException
writeDocument
public static void writeDocument(org.jdom.Document document,
java.io.File file,
java.lang.String lineSeparator)
throws java.io.IOException
- Throws:
java.io.IOException
writeDocument
public static void writeDocument(org.jdom.Document document,
java.io.OutputStream stream,
java.lang.String lineSeparator)
throws java.io.IOException
- Throws:
java.io.IOException
printDocument
public static byte[] printDocument(org.jdom.Document document,
java.lang.String lineSeparator)
throws java.io.UnsupportedEncodingException,
java.io.IOException
- Throws:
java.io.UnsupportedEncodingException
java.io.IOException
writeDocument
public static void writeDocument(org.jdom.Document document,
java.io.Writer writer,
java.lang.String lineSeparator)
throws java.io.IOException
- Throws:
java.io.IOException
createOutputter
public static org.jdom.output.XMLOutputter createOutputter(java.lang.String lineSeparator)
escapeText
public static java.lang.String escapeText(java.lang.String text)
updateFileSet
public static void updateFileSet(java.io.File[] oldFiles,
java.lang.String[] newFilePaths,
org.jdom.Document[] newFileDocuments,
java.lang.String lineSeparator)
throws java.io.IOException
- Throws:
java.io.IOException