Package 

Class LightweightRomBuffer

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public class LightweightRomBuffer
    extends RomBuffer
                        

    Lightweight RomBuffer implementation which shares given SeekableDataInput with all its duplicates. This buffer isn't thread safe if underlying SeekableDataInput also isn't thread safe. If you need thread safe implementation please consider org.jetbrains.bio.ThreadSafeStreamRomBuffer class.

    NB: ThreadSafeStreamRomBuffer class relies on implementation details of this class to avoid unnecessary synchronization. If you change this class estimate impact on ThreadSafeStreamRomBuffer class please.