< prev index next >

core/org.openjdk.jmc.flightrecorder/src/main/java/org/openjdk/jmc/flightrecorder/util/ChunkReader.java

Print this page

        

@@ -64,10 +64,14 @@
         // For JDK 8 this is the size of the magic + version and offset to the meta data event.
         // For JDK 9 and later, this it the part of the header right up to, and including, the chunk size.
         private static final int HEADER_SIZE = DataInputToolkit.INTEGER_SIZE + 2 * DataInputToolkit.SHORT_SIZE
                         + DataInputToolkit.LONG_SIZE;
 
+        private ChunkReader() {
+                throw new UnsupportedOperationException("Not to be instantiated"); //$NON-NLS-1$
+        }
+        
         /**
          * Chunk iterator for an uncompressed JFR file. Efficiently reads a JFR file, chunk by chunk,
          * into memory as byte arrays by memory mapping the JFR file, finding the chunk boundaries with
          * a minimum of parsing, and then block-transferring the byte arrays. The transfers will be done
          * on {@link Iterator#next()}, and the resulting byte array will only be reachable for as long
< prev index next >