Codota Logo
XmlReader.init
Code IndexAdd Codota to your IDE (free)

How to use
init
method
in
org.apache.wicket.util.io.XmlReader

Best Java code snippets using org.apache.wicket.util.io.XmlReader.init (Showing top 3 results out of 315)

  • Common ways to obtain XmlReader
private void myMethod () {
XmlReader x =
  • Codota IconInputStream in;String defaultEncoding;new XmlReader(new BufferedInputStream(in, int1), defaultEncoding)
  • Smart code suggestions by Codota
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Construct.
 * 
 * @param inputStream
 *            The InputStream to read the xml data from
 * @param defaultEncoding
 *            Default character encoding to use when not specified in XML declaration, specify
 *            null to use JVM default
 * @throws IOException
 *             In case something went wrong while reading the data
 */
public XmlReader(final InputStream inputStream, final String defaultEncoding)
  throws IOException
{
  // The xml parser does not have a parent filter
  super();
  this.inputStream = inputStream;
  encoding = defaultEncoding;
  if (inputStream == null)
  {
    throw new IllegalArgumentException("Parameter 'inputStream' must not be null");
  }
  init();
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Construct.
 * 
 * @param inputStream
 *            The InputStream to read the xml data from
 * @param defaultEncoding
 *            Default character encoding to use when not specified in XML declaration, specify
 *            null to use JVM default
 * @throws IOException
 *             In case something went wrong while reading the data
 */
public XmlReader(final InputStream inputStream, final String defaultEncoding)
    throws IOException
{
  // The xml parser does not have a parent filter
  super();
  this.inputStream = inputStream;
  encoding = defaultEncoding;
  if (inputStream == null)
  {
    throw new IllegalArgumentException("Parameter 'inputStream' must not be null");
  }
  init();
}
origin: org.apache.wicket/wicket-util

/**
 * Construct.
 * 
 * @param inputStream
 *            The InputStream to read the xml data from
 * @param defaultEncoding
 *            Default character encoding to use when not specified in XML declaration, specify
 *            null to use JVM default
 * @throws IOException
 *             In case something went wrong while reading the data
 */
public XmlReader(final InputStream inputStream, final String defaultEncoding)
  throws IOException
{
  Args.notNull(inputStream, "inputStream");
  if (!inputStream.markSupported())
  {
    this.inputStream = new BufferedInputStream(new BOMInputStream(inputStream));
  }
  else
  {
    this.inputStream = new BOMInputStream(inputStream);
  }
  encoding = defaultEncoding;
  init();
}
org.apache.wicket.util.ioXmlReaderinit

Javadoc

Reads and parses markup from a resource such as file.

Popular methods of XmlReader

  • <init>
    Construct.
  • determineEncoding
    Determine the encoding from the xml decl.
  • getEncoding
    Return the encoding used while reading the markup file.
  • getXmlDeclaration
    Read-ahead the input stream (markup file). If the first line contains , than remember the
  • close

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now