Tabnine Logo
HjsonParser.parse
Code IndexAdd Tabnine to your IDE (free)

How to use
parse
method
in
org.hjson.HjsonParser

Best Java code snippets using org.hjson.HjsonParser.parse (Showing top 8 results out of 315)

origin: org.hjson/hjson

/**
 * Reads a Hjson value from the given string.
 *
 * @param text the string that contains the Hjson value
 * @return the Hjson value that has been read
 * @throws ParseException if the input is not valid Hjson
 */
public static JsonValue readHjson(String text) {
 try {
  return new HjsonParser(text, null).parse();
 } catch(IOException exception) {
  // JsonParser does not throw IOException for String
  throw new RuntimeException(exception);
 }
}
origin: org.hjson/hjson

/**
 * Reads a Hjson value from the given reader.
 * <p>
 * Characters are read in chunks and buffered internally, therefore wrapping an existing reader in
 * an additional <code>BufferedReader</code> does <strong>not</strong> improve reading
 * performance.
 * </p>
 *
 * @param reader the reader to read the Hjson value from
 * @return the Hjson value that has been read
 * @throws IOException if an I/O error occurs in the reader
 * @throws ParseException if the input is not valid Hjson
 */
public static JsonValue readHjson(Reader reader) throws IOException {
 return new HjsonParser(reader, null).parse();
}
origin: hjson/hjson-java

/**
 * Reads a Hjson value from the given string.
 *
 * @param text the string that contains the Hjson value
 * @return the Hjson value that has been read
 * @throws ParseException if the input is not valid Hjson
 */
public static JsonValue readHjson(String text) {
 try {
  return new HjsonParser(text, null).parse();
 } catch(IOException exception) {
  // JsonParser does not throw IOException for String
  throw new RuntimeException(exception);
 }
}
origin: org.hjson/hjson

/**
 * Reads a Hjson value from the given string.
 *
 * @param text the string that contains the Hjson value
 * @param options the Hjson options
 * @return the Hjson value that has been read
 * @throws ParseException if the input is not valid Hjson
 */
public static JsonValue readHjson(String text, HjsonOptions options) {
 try {
  return new HjsonParser(text, options).parse();
 } catch(IOException exception) {
  // JsonParser does not throw IOException for String
  throw new RuntimeException(exception);
 }
}
/**
origin: org.hjson/hjson

/**
 * Reads a Hjson value from the given reader.
 * <p>
 * Characters are read in chunks and buffered internally, therefore wrapping an existing reader in
 * an additional <code>BufferedReader</code> does <strong>not</strong> improve reading
 * performance.
 * </p>
 *
 * @param reader the reader to read the Hjson value from
 * @param options the Hjson options
 * @return the Hjson value that has been read
 * @throws IOException if an I/O error occurs in the reader
 * @throws ParseException if the input is not valid Hjson
 */
public static JsonValue readHjson(Reader reader, HjsonOptions options) throws IOException {
 return new HjsonParser(reader, options).parse();
}
origin: hjson/hjson-java

/**
 * Reads a Hjson value from the given string.
 *
 * @param text the string that contains the Hjson value
 * @param options the Hjson options
 * @return the Hjson value that has been read
 * @throws ParseException if the input is not valid Hjson
 */
public static JsonValue readHjson(String text, HjsonOptions options) {
 try {
  return new HjsonParser(text, options).parse();
 } catch(IOException exception) {
  // JsonParser does not throw IOException for String
  throw new RuntimeException(exception);
 }
}
/**
origin: hjson/hjson-java

/**
 * Reads a Hjson value from the given reader.
 * <p>
 * Characters are read in chunks and buffered internally, therefore wrapping an existing reader in
 * an additional <code>BufferedReader</code> does <strong>not</strong> improve reading
 * performance.
 * </p>
 *
 * @param reader the reader to read the Hjson value from
 * @return the Hjson value that has been read
 * @throws IOException if an I/O error occurs in the reader
 * @throws ParseException if the input is not valid Hjson
 */
public static JsonValue readHjson(Reader reader) throws IOException {
 return new HjsonParser(reader, null).parse();
}
origin: hjson/hjson-java

/**
 * Reads a Hjson value from the given reader.
 * <p>
 * Characters are read in chunks and buffered internally, therefore wrapping an existing reader in
 * an additional <code>BufferedReader</code> does <strong>not</strong> improve reading
 * performance.
 * </p>
 *
 * @param reader the reader to read the Hjson value from
 * @param options the Hjson options
 * @return the Hjson value that has been read
 * @throws IOException if an I/O error occurs in the reader
 * @throws ParseException if the input is not valid Hjson
 */
public static JsonValue readHjson(Reader reader, HjsonOptions options) throws IOException {
 return new HjsonParser(reader, options).parse();
}
org.hjsonHjsonParserparse

Popular methods of HjsonParser

  • <init>
  • checkTrailing
  • endCapture
  • error
  • expected
  • isDigit
  • isEndOfText
  • isHexDigit
  • isWhiteSpace
  • pauseCapture
  • peek
  • read
  • peek,
  • read,
  • readArray,
  • readEscape,
  • readIf,
  • readMlString,
  • readName,
  • readObject,
  • readString

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
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