src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordingFile.java
branchJEP-349-branch
changeset 58197 0ef79bd7fb5c
parent 58145 bc54ed8d908a
equal deleted inserted replaced
58193:baf88aa4f5db 58197:0ef79bd7fb5c
    61  *
    61  *
    62  * @since 9
    62  * @since 9
    63  */
    63  */
    64 public final class RecordingFile implements Closeable {
    64 public final class RecordingFile implements Closeable {
    65 
    65 
    66     boolean isLastEventInChunk;
    66     private boolean isLastEventInChunk;
    67     private final File file;
    67     private final File file;
    68     private RecordingInput input;
    68     private RecordingInput input;
    69     private ChunkParser chunkParser;
    69     private ChunkParser chunkParser;
    70     private RecordedEvent nextEvent;
    70     private RecordedEvent nextEvent;
    71     private boolean eof;
    71     private boolean eof;
   233     // package protected
   233     // package protected
   234     File getFile() {
   234     File getFile() {
   235         return file;
   235         return file;
   236     }
   236     }
   237 
   237 
       
   238     // package protected
       
   239     boolean isLastEventInChunk() {
       
   240         return isLastEventInChunk;
       
   241     }
       
   242 
       
   243 
   238     // either sets next to an event or sets eof to true
   244     // either sets next to an event or sets eof to true
   239     private void findNext() throws IOException {
   245     private void findNext() throws IOException {
   240         while (nextEvent == null) {
   246         while (nextEvent == null) {
   241             if (chunkParser == null) {
   247             if (chunkParser == null) {
   242                 chunkParser = new ChunkParser(input);
   248                 chunkParser = new ChunkParser(input);