Tabnine Logo
XmlReader.getEncoding
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * 
 * @see org.apache.wicket.markup.parser.IXmlPullParser#getEncoding()
 */
public String getEncoding()
{
  return xmlReader.getEncoding();
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * 
 * @see org.apache.wicket.markup.parser.IXmlPullParser#getEncoding()
 */
public String getEncoding()
{
  return xmlReader.getEncoding();
}
origin: org.apache.wicket/wicket-core

/**
 * Reads and parses markup from an input stream.
 * <p>
 * Note: The input is closed after parsing.
 * 
 * @param inputStream
 *            The input stream to read and parse
 * @param encoding
 *            The default character encoding of the input
 * @throws IOException
 */
@Override
public void parse(final InputStream inputStream, final String encoding) throws IOException
{
  Args.notNull(inputStream, "inputStream");
  try
  {
    XmlReader xmlReader = new XmlReader(new BufferedInputStream(inputStream, 4000),
      encoding);
    this.input = new FullyBufferedReader(xmlReader);
    this.encoding = xmlReader.getEncoding();
  }
  finally
  {
    IOUtils.closeQuietly(inputStream);
  }
}
origin: apache/wicket

/**
 * Reads and parses markup from an input stream.
 * <p>
 * Note: The input is closed after parsing.
 * 
 * @param inputStream
 *            The input stream to read and parse
 * @param encoding
 *            The default character encoding of the input
 * @throws IOException
 */
@Override
public void parse(final InputStream inputStream, final String encoding) throws IOException
{
  Args.notNull(inputStream, "inputStream");
  try
  {
    XmlReader xmlReader = new XmlReader(new BufferedInputStream(inputStream, 4000),
      encoding);
    this.input = new FullyBufferedReader(xmlReader);
    this.encoding = xmlReader.getEncoding();
  }
  finally
  {
    IOUtils.closeQuietly(inputStream);
  }
}
org.apache.wicket.util.ioXmlReadergetEncoding

Javadoc

Return the encoding used while reading the markup file.

Popular methods of XmlReader

  • <init>
    Construct.
  • determineEncoding
    Determine the encoding from the xml decl.
  • getXmlDeclaration
    Read-ahead the input stream (markup file). If the first line contains , than remember the
  • init
    Reads and parses markup from a resource such as file.
  • close

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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