gpt4 book ai didi

java.util.prefs.XMLParser.importPrefs()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 21:17:40 35 4
gpt4 key购买 nike

本文整理了Java中java.util.prefs.XMLParser.importPrefs()方法的一些代码示例,展示了XMLParser.importPrefs()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLParser.importPrefs()方法的具体详情如下:
包路径:java.util.prefs.XMLParser
类名称:XMLParser
方法名:importPrefs

XMLParser.importPrefs介绍

[英]utilities for Preferences import
[中]首选项导入实用程序

代码示例

代码示例来源:origin: robovm/robovm

/**
 * 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>
 * &lt;!DOCTYPE preferences SYSTEM &quot;http://java.sun.com/dtd/preferences.dtd&quot;&gt;
 * </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);
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * 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>
 * &lt;!DOCTYPE preferences SYSTEM &quot;http://java.sun.com/dtd/preferences.dtd&quot;&gt;
 * </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);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * 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>
 * &lt;!DOCTYPE preferences SYSTEM &quot;http://java.sun.com/dtd/preferences.dtd&quot;&gt;
 * </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);
}

代码示例来源:origin: MobiVM/robovm

/**
 * 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>
 * &lt;!DOCTYPE preferences SYSTEM &quot;http://java.sun.com/dtd/preferences.dtd&quot;&gt;
 * </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);
}

代码示例来源:origin: ibinti/bugvm

/**
 * 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>
 * &lt;!DOCTYPE preferences SYSTEM &quot;http://java.sun.com/dtd/preferences.dtd&quot;&gt;
 * </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);
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * 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>
 * &lt;!DOCTYPE preferences SYSTEM &quot;http://java.sun.com/dtd/preferences.dtd&quot;&gt;
 * </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);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * 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>
 * &lt;!DOCTYPE preferences SYSTEM &quot;http://java.sun.com/dtd/preferences.dtd&quot;&gt;
 * </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);
}

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com