19 package org.sleuthkit.datamodel;
21 import java.io.BufferedOutputStream;
22 import java.io.IOException;
23 import java.io.OutputStream;
65 private void writeHeader() throws IOException {
67 write(EncodedFileUtil.getEncodedHeader(type), 0, EncodedFileUtil.getHeaderLength());
71 public void write(
int b)
throws IOException {
72 super.write((
int) EncodedFileUtil.encodeByte((byte) b, type));
80 byte[] encodedData =
new byte[b.length];
81 for (
int i = 0; i < b.length; i++) {
82 encodedData[i] = EncodedFileUtil.encodeByte(b[i], type);
85 super.write(encodedData, off, len);
EncodedFileOutputStream(OutputStream out, int size, TskData.EncodingType type)
EncodedFileOutputStream(OutputStream out, TskData.EncodingType type)
void write(byte[] b, int off, int len)