Package org.apache.commons.imaging.common

# Class BasicCParser

java.lang.Object
org.apache.commons.imaging.common.BasicCParser

public class BasicCParser extends Object
A rudimentary preprocessor and parser for the C programming language. FIXME replace this by a parser generated via ANTLR (if we really need it?!)

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BasicCParser(ByteArrayInputStream is)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `nextToken()`
  `static ByteArrayOutputStream`
  `preprocess(InputStream is, StringBuilder firstComment, Map<String,String> defines)`
  `static String[]`
  `tokenizeRow(String row)`
  `static void`
  `unescapeString(StringBuilder stringBuilder, String string)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BasicCParser

    public BasicCParser(ByteArrayInputStream is)

- ## Method Details

  - ### preprocess

    public static ByteArrayOutputStream preprocess(InputStream is, StringBuilder firstComment, Map<String,String> defines) throws IOException, ImagingException
    Throws:
      `IOException`
      `ImagingException`

  - ### tokenizeRow

    public static String[] tokenizeRow(String row)

  - ### unescapeString

    public static void unescapeString(StringBuilder stringBuilder, String string) throws ImagingException
    Throws:
      `ImagingException`

  - ### nextToken

    public String nextToken() throws IOException, ImagingException
    Throws:
      `IOException`
      `ImagingException`