|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.shortcut.ShortcutPersistenceUtils
public class ShortcutPersistenceUtils
A helper class that can support persist ShortcutSchema to/from xml file.
Constructor Summary | |
---|---|
ShortcutPersistenceUtils()
|
Method Summary | |
---|---|
static String |
getVersion(Document document)
|
static String |
getVersion(InputStream in)
|
static String |
getVersion(String fileName)
|
static void |
load(ShortcutSchemaManager manager,
Document document)
|
static void |
load(ShortcutSchemaManager manager,
Document document,
boolean append)
|
static void |
load(ShortcutSchemaManager manager,
InputStream in)
|
static void |
load(ShortcutSchemaManager manager,
InputStream in,
boolean append)
|
static void |
load(ShortcutSchemaManager manager,
String fileName)
|
static void |
load(ShortcutSchemaManager manager,
String fileName,
boolean append)
|
static Document |
save(ShortcutSchemaManager manager)
|
static void |
save(ShortcutSchemaManager manager,
OutputStream out)
Saves the shortcut schema to a file. |
static void |
save(ShortcutSchemaManager manager,
OutputStream out,
String encoding)
Saves the shortcut schema to a file. |
static void |
save(ShortcutSchemaManager manager,
String fileName)
Saves the shortcut schema to a file. |
static void |
save(ShortcutSchemaManager manager,
String fileName,
String encoding)
Saves the shortcut schema to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShortcutPersistenceUtils()
Method Detail |
---|
public static void save(ShortcutSchemaManager manager, String fileName) throws ParserConfigurationException, IOException
manager
- the shortcut schema managerfileName
- the file name
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
IOException
- If the pathname argument is null or any IO errors happenpublic static void save(ShortcutSchemaManager manager, String fileName, String encoding) throws ParserConfigurationException, IOException
manager
- the shortcut schema managerfileName
- the file nameencoding
- the encoding choice. It would be UTF-8 in default if you call the method without this parameter.
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
IOException
- If the pathname argument is null or any IO errors happenpublic static void save(ShortcutSchemaManager manager, OutputStream out) throws ParserConfigurationException, IOException
manager
- the shortcut schema managerout
- the output stream
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
IOException
- If the pathname argument is null or any IO errors happenpublic static void save(ShortcutSchemaManager manager, OutputStream out, String encoding) throws ParserConfigurationException, IOException
manager
- the shortcut schema managerout
- the output streamencoding
- the encoding choice. It would be UTF-8 in default if you call the method without this parameter.
ParserConfigurationException
- if a DocumentBuilder cannot be created which satisfies the configuration
IOException
- If the pathname argument is null or any IO errors happenpublic static Document save(ShortcutSchemaManager manager) throws ParserConfigurationException
ParserConfigurationException
public static void load(ShortcutSchemaManager manager, InputStream in) throws ParserConfigurationException, SAXException, IOException
ParserConfigurationException
SAXException
IOException
public static void load(ShortcutSchemaManager manager, String fileName) throws ParserConfigurationException, SAXException, IOException
ParserConfigurationException
SAXException
IOException
public static void load(ShortcutSchemaManager manager, InputStream in, boolean append) throws ParserConfigurationException, SAXException, IOException
ParserConfigurationException
SAXException
IOException
public static void load(ShortcutSchemaManager manager, String fileName, boolean append) throws ParserConfigurationException, SAXException, IOException
ParserConfigurationException
SAXException
IOException
public static void load(ShortcutSchemaManager manager, Document document)
public static void load(ShortcutSchemaManager manager, Document document, boolean append)
public static String getVersion(InputStream in) throws ParserConfigurationException, SAXException, IOException
ParserConfigurationException
SAXException
IOException
public static String getVersion(String fileName) throws ParserConfigurationException, SAXException, IOException
ParserConfigurationException
SAXException
IOException
public static String getVersion(Document document)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |