public class DoctypeInterpolator
extends java.lang.Object
| Constructor and Description |
|---|
DoctypeInterpolator() |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getStreamWithDoctype(java.io.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.
|
java.lang.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(java.lang.String[] args)
Filter program which takes a stream on standard output and writes
to standard output including the DOCTYPE.
|
void |
message(java.lang.String msg)
Presents a processing message.
|
public java.io.InputStream getStreamWithDoctype(java.io.BufferedInputStream in)
throws java.io.IOException
in - original input streamjava.lang.IllegalStateException - if this method has already been called
on this objectjava.io.IOExceptionpublic java.lang.String getVotableVersion()
public void message(java.lang.String msg)
msg - message textpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.