congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
HjsonParser.reset
Code IndexAdd Tabnine to your IDE (free)

How to use
reset
method
in
org.hjson.HjsonParser

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

origin: org.hjson/hjson

HjsonParser(String string, HjsonOptions options) {
 buffer=string;
 reset();
 if (options!=null) {
  dsfProviders=options.getDsfProviders();
  legacyRoot=options.getParseLegacyRoot();
 } else {
  dsfProviders=new IHjsonDsfProvider[0];
  legacyRoot=true;
 }
}
origin: hjson/hjson-java

HjsonParser(String string, HjsonOptions options) {
 buffer=string;
 reset();
 if (options!=null) {
  dsfProviders=options.getDsfProviders();
  legacyRoot=options.getParseLegacyRoot();
 } else {
  dsfProviders=new IHjsonDsfProvider[0];
  legacyRoot=true;
 }
}
origin: org.hjson/hjson

JsonValue parse() throws IOException {
 // Braces for the root object are optional
 read();
 skipWhiteSpace();
 if (legacyRoot) {
  switch (current) {
   case '[':
   case '{':
    return checkTrailing(readValue());
   default:
    try {
     // assume we have a root object without braces
     return checkTrailing(readObject(true));
    } catch (Exception exception) {
     // test if we are dealing with a single JSON value instead (true/false/null/num/"")
     reset();
     read();
     skipWhiteSpace();
     try { return checkTrailing(readValue()); }
     catch (Exception exception2) { }
     throw exception; // throw original error
    }
  }
 } else {
  return checkTrailing(readValue());
 }
}
origin: hjson/hjson-java

JsonValue parse() throws IOException {
 // Braces for the root object are optional
 read();
 skipWhiteSpace();
 if (legacyRoot) {
  switch (current) {
   case '[':
   case '{':
    return checkTrailing(readValue());
   default:
    try {
     // assume we have a root object without braces
     return checkTrailing(readObject(true));
    } catch (Exception exception) {
     // test if we are dealing with a single JSON value instead (true/false/null/num/"")
     reset();
     read();
     skipWhiteSpace();
     try { return checkTrailing(readValue()); }
     catch (Exception exception2) { }
     throw exception; // throw original error
    }
  }
 } else {
  return checkTrailing(readValue());
 }
}
org.hjsonHjsonParserreset

Popular methods of HjsonParser

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

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • putExtra (Intent)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Top Sublime Text plugins
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