org.nukesoft.bot2.botutil
Class XmlToTxmlInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--org.nukesoft.bot2.botutil.XmlToTxmlInputStream

public class XmlToTxmlInputStream
extends InputStream

The purpose of this class is to allow the TXML library to read standard XML 1.0 compliant files. This is accomplished by providing a filtering layer between the file and TXML that converts or removes any incompatable XML markup. Comments and metadata are removed, terminal tags are converted into empty pairs of tags, and tag parameters are promoted to full fledged sub-tags.

Author:
Ryan Michela (http://www.nukesoft.org)

Constructor Summary
XmlToTxmlInputStream(InputStream in)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlToTxmlInputStream

public XmlToTxmlInputStream(InputStream in)
                     throws IOException
Method Detail

available

public int available()
              throws IOException
Overrides:
available in class InputStream
IOException

close

public void close()
           throws IOException
Overrides:
close in class InputStream
IOException

mark

public void mark(int readlimit)
Overrides:
mark in class InputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream

read

public int read()
         throws IOException
Specified by:
read in class InputStream
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
IOException

read

public int read(byte[] b)
         throws IOException
Overrides:
read in class InputStream
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class InputStream
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class InputStream
IOException