@Internal public final class OffsetAwareOutputStream extends Object implements Closeable
OutputStream
that keeps track of its current length.Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
long |
getLength() |
void |
write(byte[] b,
int off,
int len) |
public long getLength()
public void write(byte[] b, int off, int len) throws IOException
IOException
public void flush() throws IOException
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.