public class TaggedReader extends Reader
The syntax for an entry is
'$$$' ws* key ws* '=' value '\n' value = string | quoted_string quoted_string = '"' [ char | escape ]* '"'Meta data is scanned until the first line not starting with '$$$'. So the first character returned is the first character on the first line not starting with '$$$'.
| Constructor and Description |
|---|
TaggedReader(Reader reader,
int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getEncoding() |
String |
getProperty(String name) |
Iterator<String> |
getPropertyNames() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
void |
putProperty(String name,
String value) |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
boolean |
ready() |
void |
reset() |
long |
skip(long n) |
public TaggedReader(Reader reader, int size) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic String getEncoding()
public void mark(int readAheadLimit)
throws IOException
mark in class ReaderIOExceptionpublic boolean markSupported()
markSupported in class Readerpublic int read()
throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionpublic boolean ready()
throws IOException
ready in class ReaderIOExceptionpublic void reset()
throws IOException
reset in class ReaderIOExceptionpublic long skip(long n)
throws IOException
skip in class ReaderIOExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.