Top Description Fields Constructors Methods
jdk.jfr.internal.consumer.filter

pack-priv final Class RecordingOutput

extends Object
implements Closeable
Class Inheritance
All Implemented Interfaces
java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.Closeable, .File, .IOException, .RandomAccessFile

Write cache and LEB128 encoder

Field Summary

Modifier and TypeField and Description
private final byte[]
private int
private final RandomAccessFile
private long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.
public void
public void
position(long pos)

public long
public void
writeByte(byte value)

public void
writeLong(long v)

public void
public void
writeRawLong(long v)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferback to summary
private final byte[] buffer
bufferPositionback to summary
private int bufferPosition
fileback to summary
private final RandomAccessFile file
positionback to summary
private long position

Constructor Detail

RecordingOutputback to summary
public RecordingOutput(File file) throws IOException

Method Detail

closeback to summary
public void close() throws IOException

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
flushback to summary
public void flush() throws IOException
positionback to summary
public void position(long pos) throws IOException
positionback to summary
public long position() throws IOException
writeByteback to summary
public void writeByte(byte value) throws IOException
writeLongback to summary
public void writeLong(long v) throws IOException
writePaddedUnsignedIntback to summary
public void writePaddedUnsignedInt(long value) throws IOException
writeRawLongback to summary
public void writeRawLong(long v) throws IOException