Class SizeLimitedInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    @Deprecated
    public class SizeLimitedInputStream
    extends InputStream
    Deprecated.
    since 7.0.1 see HttpRetrievalService for details
    This is a wrapper around an InputStream that limits the amount of data that can be returned. This allows admins to set maximum download sizes for Confluence retrieved content, so that people can't, say, point the RSS macro at an ISO file and cause the system to collapse painfully.

    If you try to retrieve more than the maximum allowed size, the read() methods will fail with an IOException