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:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
- Enclosing class:
- InMemoryRepository
private abstract static class InMemoryRepository.Out extends DfsOutputStream
-
-
Constructor Summary
Constructors Modifier Constructor Description privateOut()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()abstract voidflush()(package private) byte[]getData()intread(long position, java.nio.ByteBuffer buf)Read back a portion of already written data.voidwrite(byte[] buf, int off, int len)-
Methods inherited from class org.eclipse.jgit.internal.storage.dfs.DfsOutputStream
blockSize, write
-
-
-
-
Method Detail
-
write
public void write(byte[] buf, int off, int len)Description copied from class:DfsOutputStream- Specified by:
writein classDfsOutputStream
-
read
public int read(long position, java.nio.ByteBuffer buf)Description copied from class:DfsOutputStreamRead back a portion of already written data.The writing position of the output stream is not affected by a read.
- Specified by:
readin classDfsOutputStream- Parameters:
position- offset to read from.buf- buffer to populate. Up tobuf.remaining()bytes will be read fromposition.- Returns:
- number of bytes actually read.
-
getData
byte[] getData()
-
flush
public abstract void flush()
- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream
-
-