public class NewlineParser extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
bMisplacedCr
Did the reader detect a misplaced CR while parsing newlines.
|
boolean |
bMisplacedLf
Did the reader detect a misplaced LF while parsing newlines.
|
boolean |
bMissingCr
Did the reader detect a missing CR while parsing newlines.
|
boolean |
bMissingLf
Did the reader detect a missing LF while parsing newlines.
|
| Constructor and Description |
|---|
NewlineParser() |
| Modifier and Type | Method and Description |
|---|---|
int |
parseCRLFs(ByteCountingPushBackInputStream in,
Diagnostics diagnostics)
Looks forward in the input stream and counts the number of newlines
found.
|
int |
parseLFs(ByteCountingPushBackInputStream in,
Diagnostics diagnostics)
Looks forward in the input stream and counts the number of newlines
found.
|
public boolean bMissingCr
public boolean bMissingLf
public boolean bMisplacedCr
public boolean bMisplacedLf
public NewlineParser()
public int parseLFs(ByteCountingPushBackInputStream in, Diagnostics diagnostics) throws java.io.IOException
in - data input streamdiagnostics - object used to report errors and/or warningsjava.io.IOException - if an error occurs while reading datapublic int parseCRLFs(ByteCountingPushBackInputStream in, Diagnostics diagnostics) throws java.io.IOException
in - data input streamdiagnostics - object used to report errors and/or warningsjava.io.IOException - if an error occurs while reading dataCopyright © 2011–2023. All rights reserved.