org.objectweb.asm.xml
Class Processor.ProtectedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.objectweb.asm.xml.Processor.ProtectedInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
Processor

private static final class Processor.ProtectedInputStream
extends java.io.InputStream

IputStream wrapper class used to protect input streams from being closed by some stupid XML parsers.


Field Summary
private  java.io.InputStream is
           
 
Constructor Summary
private Processor.ProtectedInputStream(java.io.InputStream is)
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

is

private final java.io.InputStream is
Constructor Detail

Processor.ProtectedInputStream

private Processor.ProtectedInputStream(java.io.InputStream is)
Method Detail

close

public final void close()
                 throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

read

public final int read()
               throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public final int read(byte[] b,
                      int off,
                      int len)
               throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

available

public final int available()
                    throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException