Class InMemoryRepository.Out

java.lang.Object
java.io.OutputStream
org.eclipse.jgit.internal.storage.dfs.DfsOutputStream
org.eclipse.jgit.internal.storage.dfs.InMemoryRepository.Out
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing class:
InMemoryRepository

private abstract static class InMemoryRepository.Out extends DfsOutputStream
  • Field Details

  • Constructor Details

    • Out

      private Out()
  • Method Details

    • write

      public void write(byte[] buf, int off, int len)
      Description copied from class: DfsOutputStream
      Specified by:
      write in class DfsOutputStream
    • read

      public int read(long position, ByteBuffer buf)
      Description copied from class: DfsOutputStream
      Read back a portion of already written data.

      The writing position of the output stream is not affected by a read.

      Specified by:
      read in class DfsOutputStream
      Parameters:
      position - offset to read from.
      buf - buffer to populate. Up to buf.remaining() bytes will be read from position.
      Returns:
      number of bytes actually read.
    • getData

      byte[] getData()
    • flush

      public abstract void flush()
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class OutputStream
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class OutputStream