Class MemoryArchive

java.lang.Object
org.apache.jackrabbit.vault.fs.io.MemoryArchive
All Implemented Interfaces:
Closeable, AutoCloseable, Archive, InputStreamPump.Pump

public class MemoryArchive extends Object implements InputStreamPump.Pump
Implements an InputStreamPump.Pump that extracts the relevant parts from the input stream into memory. The memory archive is initialized via the run(InputStream) being called from InputStreamPump.
  • Field Details

    • PROPERTY_ENABLE_STACK_TRACES

      protected static final String PROPERTY_ENABLE_STACK_TRACES
      See Also:
    • SHOULD_CREATE_STACK_TRACE

      protected static final boolean SHOULD_CREATE_STACK_TRACE
      Determines whether stack traces should be created for each register call of CloseWatcher. This is false by default. Enable via system or OSGi framework property vault.enableStackTraces.
  • Constructor Details

    • MemoryArchive

      public MemoryArchive(boolean metaOnly) throws IOException
      Creates new memory archive.
      Parameters:
      metaOnly - if true only the meta info content is cached.
      Throws:
      IOException - if an I/O error occurrs
  • Method Details