DfsObjDatabase#writeFile(DfsPackDescription, PackExt)
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: recommended alignment size for randomly positioned reads. Does not need to be a power of 2.Get the recommended alignment for writing. |
| public abstract int | Returns: number of bytes actually read.offset to read from. position, ByteBuffer buffer to populate. Up to buf)buf.remaining() bytes will
be read from position.Read back a portion of already written data. |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public abstract void | write(byte[]
the data. buf, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| DfsOutputStream | back to summary |
|---|---|
| public DfsOutputStream() | |
| blockSize | back to summary |
|---|---|
| public int blockSize() Get the recommended alignment for writing. Starting a write at multiples of the blockSize is more efficient than starting a write at any other position. If 0 or -1 the channel does not have any specific block size recommendation. Channels should not recommend large block sizes. Sizes up to 1-4 MiB may be reasonable, but sizes above that may be horribly inefficient.
| |
| read | back to summary |
|---|---|
| public abstract int read(long position, ByteBuffer buf) throws IOException Read back a portion of already written data. The writing position of the output stream is not affected by a read.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public abstract void write(byte[] buf, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |