public class RateLimitedOutputStream extends FilterOutputStream implements PositionedOutput
OutputStream
which limits the rate at which data may be written.out
Constructor and Description |
---|
RateLimitedOutputStream(OutputStream wrappedStream,
RateLimiter writeLimiter) |
public RateLimitedOutputStream(OutputStream wrappedStream, RateLimiter writeLimiter)
public void write(int i) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] buffer, int offset, int length) throws IOException
write
in class FilterOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
public long position() throws IOException
position
in interface PositionedOutput
IOException
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.