Tabnine Logo
XmlReader.init
Code IndexAdd Tabnine 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)

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

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now