Examples of LimitingInputStream


Examples of com.github.stephenc.javaisotools.sabre.io.LimitingInputStream

        }

        // Limit input stream, if necessary
        if (this.length != -1) {
            // System.out.println("Limiting to " + this.length + " ");
            fileInputStream = new LimitingInputStream(fileInputStream, (int) this.length);
        }

        // System.out.println();

        // Buffer input stream
View Full Code Here

Examples of com.github.stephenc.javaisotools.sabre.io.LimitingInputStream

        InputStream urlInputStream = null;
        InputStream limitedInputStream = null;

        urlInputStream = this.url.openStream();
        urlInputStream.skip(this.position);
        limitedInputStream = new LimitingInputStream(urlInputStream, (int) this.length);

        return limitedInputStream;
    }
View Full Code Here

Examples of org.apache.xml.security.stax.impl.util.LimitingInputStream

                Class<InputStream> transformerClass =
                        (Class<InputStream>) TransformerAlgorithmMapper.getTransformerClass(
                                transformType.getAlgorithm(), XMLSecurityConstants.DIRECTION.IN);
                try {
                    Constructor<InputStream> constructor = transformerClass.getConstructor(InputStream.class);
                    inputStream = new LimitingInputStream(
                            constructor.newInstance(inputStream),
                            maximumAllowedDecompressedBytes);
                } catch (InvocationTargetException e) {
                    throw new XMLSecurityException(e);
                } catch (NoSuchMethodException e) {
View Full Code Here

Examples of org.apache.xml.security.stax.impl.util.LimitingInputStream

                Class<InputStream> transformerClass =
                        (Class<InputStream>) TransformerAlgorithmMapper.getTransformerClass(
                                transformType.getAlgorithm(), XMLSecurityConstants.DIRECTION.IN);
                try {
                    Constructor<InputStream> constructor = transformerClass.getConstructor(InputStream.class);
                    inputStream = new LimitingInputStream(
                            constructor.newInstance(inputStream),
                            maximumAllowedDecompressedBytes);
                } catch (InvocationTargetException e) {
                    throw new XMLSecurityException(e);
                } catch (NoSuchMethodException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.