public class DoctypeInterpolator extends Object
Constructor and Description |
---|
DoctypeInterpolator() |
Modifier and Type | Method and Description |
---|---|
InputStream |
getStreamWithDoctype(BufferedInputStream in)
Returns an input stream which is a copy of a given one, except
that if the given one doesn't include a DOCTYPE declaration,
one is inserted.
|
String |
getVotableVersion()
Returns the value of the
version attribute of the top-level
VOTABLE element, if there was one and it was encountered. |
static void |
main(String[] args)
Filter program which takes a stream on standard output and writes
to standard output including the DOCTYPE.
|
void |
message(String msg)
Presents a processing message.
|
public InputStream getStreamWithDoctype(BufferedInputStream in) throws IOException
in
- original input streamin
but with a DOCTYPEIllegalStateException
- if this method has already been called
on this objectIOException
public String getVotableVersion()
version
attribute of the top-level
VOTABLE element, if there was one and it was encountered.public void message(String msg)
msg
- message textpublic static void main(String[] args) throws IOException
IOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.