org.apache.xml.security.stax.impl.util
Class LimitingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.xml.security.stax.impl.util.LimitingInputStream
All Implemented Interfaces:
Closeable

public class LimitingInputStream
extends FilterInputStream

Version:
$Revision: 1403039 $ $Date: 2012-10-28 16:55:54 +0000 (Sun, 28 Oct 2012) $
Author:
$Author: giger $

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
LimitingInputStream(InputStream in, long limit)
           
 
Method Summary
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitingInputStream

public LimitingInputStream(InputStream in,
                           long limit)
Method Detail

read

public int read()
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException

read

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

read

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


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.