APIdia Launch Partner
Top Fields Constructors Methods
jdk.jfr.internal.consumer

public final Class FinishedStream

extends EventByteStream
Class Inheritance
Imports
java.io.BufferedInputStream, .IOException, .InputStream, jdk.jfr.internal.management.EventByteStream

Field Summary

Modifier and TypeField and Description
private final byte[]
private final BufferedInputStream
Inherited from jdk.jfr.internal.management.EventByteStream:
NAME

Constructor Summary

AccessConstructor and Description
public
FinishedStream(InputStream is, int blockSize)

Method Summary

Modifier and TypeMethod and Description
public synchronized void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

public synchronized byte[]
Inherited from jdk.jfr.internal.management.EventByteStream:
getIdgetLastTouchednewFinishedStreamnewOngoingStreamtouch

Field Detail

bufferback to summary
private final byte[] buffer
inputStreamback to summary
private final BufferedInputStream inputStream

Constructor Detail

FinishedStreamback to summary
public FinishedStream(InputStream is, int blockSize)

Method Detail

closeback to summary
public synchronized 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
readback to summary
public synchronized byte[] read() throws IOException

Implements abstract jdk.jfr.internal.management.EventByteStream.read.

Annotations
@Override