/** * Imports all the preferences from an XML document using the given input * stream. * <p> * This XML document uses the UTF-8 encoding and must be written according * to the DTD in its DOCTYPE declaration, which must be the following: * * <pre> * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> * </pre> * * <i>Please note that (unlike the methods of this class that don't concern * serialization), this call is not thread-safe.</i> * </p> * * @param istream * the input stream to read the data from. * @throws InvalidPreferencesFormatException * if the data read from the given input stream is not from a * valid XML document. * @throws IOException * if an error occurs while importing. */ public static void importPreferences (InputStream istream) throws InvalidPreferencesFormatException, IOException { if (istream == null){ throw new MalformedURLException("Inputstream cannot be null"); } XMLParser.importPrefs(istream); }
/** * Imports all the preferences from an XML document using the given input * stream. * <p> * This XML document uses the UTF-8 encoding and must be written according * to the DTD in its DOCTYPE declaration, which must be the following: * * <pre> * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> * </pre> * * <i>Please note that (unlike the methods of this class that don't concern * serialization), this call is not thread-safe.</i> * </p> * * @param istream * the input stream to read the data from. * @throws InvalidPreferencesFormatException * if the data read from the given input stream is not from a * valid XML document. * @throws IOException * if an error occurs while importing. */ public static void importPreferences (InputStream istream) throws InvalidPreferencesFormatException, IOException { if (istream == null){ throw new MalformedURLException("Inputstream cannot be null"); } XMLParser.importPrefs(istream); }
/** * Imports all the preferences from an XML document using the given input * stream. * <p> * This XML document uses the UTF-8 encoding and must be written according * to the DTD in its DOCTYPE declaration, which must be the following: * * <pre> * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> * </pre> * * <i>Please note that (unlike the methods of this class that don't concern * serialization), this call is not thread-safe.</i> * </p> * * @param istream * the input stream to read the data from. * @throws InvalidPreferencesFormatException * if the data read from the given input stream is not from a * valid XML document. * @throws IOException * if an error occurs while importing. */ public static void importPreferences (InputStream istream) throws InvalidPreferencesFormatException, IOException { if (istream == null){ throw new MalformedURLException("Inputstream cannot be null"); } XMLParser.importPrefs(istream); }
/** * Imports all the preferences from an XML document using the given input * stream. * <p> * This XML document uses the UTF-8 encoding and must be written according * to the DTD in its DOCTYPE declaration, which must be the following: * * <pre> * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> * </pre> * * <i>Please note that (unlike the methods of this class that don't concern * serialization), this call is not thread-safe.</i> * </p> * * @param istream * the input stream to read the data from. * @throws InvalidPreferencesFormatException * if the data read from the given input stream is not from a * valid XML document. * @throws IOException * if an error occurs while importing. */ public static void importPreferences (InputStream istream) throws InvalidPreferencesFormatException, IOException { if (istream == null){ throw new MalformedURLException("Inputstream cannot be null"); } XMLParser.importPrefs(istream); }
/** * Imports all the preferences from an XML document using the given input * stream. * <p> * This XML document uses the UTF-8 encoding and must be written according * to the DTD in its DOCTYPE declaration, which must be the following: * * <pre> * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> * </pre> * * <i>Please note that (unlike the methods of this class that don't concern * serialization), this call is not thread-safe.</i> * </p> * * @param istream * the input stream to read the data from. * @throws InvalidPreferencesFormatException * if the data read from the given input stream is not from a * valid XML document. * @throws IOException * if an error occurs while importing. */ public static void importPreferences (InputStream istream) throws InvalidPreferencesFormatException, IOException { if (istream == null){ throw new MalformedURLException("Inputstream cannot be null"); } XMLParser.importPrefs(istream); }
/** * Imports all the preferences from an XML document using the given input * stream. * <p> * This XML document uses the UTF-8 encoding and must be written according * to the DTD in its DOCTYPE declaration, which must be the following: * * <pre> * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> * </pre> * * <i>Please note that (unlike the methods of this class that don't concern * serialization), this call is not thread-safe.</i> * </p> * * @param istream * the input stream to read the data from. * @throws InvalidPreferencesFormatException * if the data read from the given input stream is not from a * valid XML document. * @throws IOException * if an error occurs while importing. */ public static void importPreferences (InputStream istream) throws InvalidPreferencesFormatException, IOException { if (istream == null){ throw new MalformedURLException("Inputstream cannot be null"); } XMLParser.importPrefs(istream); }
/** * Imports all the preferences from an XML document using the given input * stream. * <p> * This XML document uses the UTF-8 encoding and must be written according * to the DTD in its DOCTYPE declaration, which must be the following: * * <pre> * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> * </pre> * * <i>Please note that (unlike the methods of this class that don't concern * serialization), this call is not thread-safe.</i> * </p> * * @param istream * the input stream to read the data from. * @throws InvalidPreferencesFormatException * if the data read from the given input stream is not from a * valid XML document. * @throws IOException * if an error occurs while importing. */ public static void importPreferences (InputStream istream) throws InvalidPreferencesFormatException, IOException { if (istream == null){ throw new MalformedURLException("Inputstream cannot be null"); } XMLParser.importPrefs(istream); }