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 private
Out()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
abstract void
flush()
(package private) byte[]
getData()
int
read(long position, java.nio.ByteBuffer buf)
Read back a portion of already written data.void
write(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:
write
in classDfsOutputStream
-
read
public int read(long position, java.nio.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 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:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
-
-