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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ByteArrayOutputStreampreprocess(InputStream is, StringBuilder firstComment, Map<String, String> defines) static String[]tokenizeRow(String row) static voidunescapeString(StringBuilder stringBuilder, String string) 
- 
Constructor Details- 
BasicCParser
 
- 
- 
Method Details- 
preprocesspublic static ByteArrayOutputStream preprocess(InputStream is, StringBuilder firstComment, Map<String, String> defines) throws IOException, ImagingException- Throws:
- IOException
- ImagingException
 
- 
tokenizeRow
- 
unescapeStringpublic static void unescapeString(StringBuilder stringBuilder, String string) throws ImagingException - Throws:
- ImagingException
 
- 
nextToken- Throws:
- IOException
- ImagingException
 
 
-