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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jgit.internal.storage.dfs.DfsOutputStream
blockSize, writeMethods inherited from class java.io.OutputStream
nullOutputStream, write
-
Field Details
-
dst
-
data
private byte[] data
-
-
Constructor Details
-
Out
private Out()
-
-
Method Details
-
write
public void write(byte[] buf, int off, int len) Description copied from class:DfsOutputStream- Specified by:
writein classDfsOutputStream
-
read
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 interfaceFlushable- Overrides:
flushin classOutputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-