Class BasicCParser
java.lang.Object
org.apache.commons.imaging.common.BasicCParser
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteArrayOutputStream
preprocess
(InputStream is, StringBuilder firstComment, Map<String, String> defines) static String[]
tokenizeRow
(String row) static void
unescapeString
(StringBuilder stringBuilder, String string)
-
Constructor Details
-
BasicCParser
-
-
Method Details
-
preprocess
public static ByteArrayOutputStream preprocess(InputStream is, StringBuilder firstComment, Map<String, String> defines) throws IOException, ImagingException- Throws:
IOException
ImagingException
-
tokenizeRow
-
unescapeString
public static void unescapeString(StringBuilder stringBuilder, String string) throws ImagingException - Throws:
ImagingException
-
nextToken
- Throws:
IOException
ImagingException
-