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, write
Methods 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:
write
in classDfsOutputStream
-
read
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 interfaceFlushable
- Overrides:
flush
in classOutputStream
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
-