19 package org.sleuthkit.datamodel;
21 import java.io.BufferedOutputStream;
22 import java.io.IOException;
23 import java.io.OutputStream;
61 write(EncodedFileUtil.getEncodedHeader(
type), 0, EncodedFileUtil.getHeaderLength());
65 public void write(
int b)
throws IOException{
66 super.write((
int)EncodedFileUtil.encodeByte((byte)b,
type));
74 byte[] encodedData =
new byte[b.length];
75 for(
int i = 0;i < b.length;i++){
76 encodedData[i] = EncodedFileUtil.encodeByte(b[i],
type);
79 super.write(encodedData, off, len);
TskData.EncodingType type
EncodedFileOutputStream(OutputStream out, int size, TskData.EncodingType type)
EncodedFileOutputStream(OutputStream out, TskData.EncodingType type)
void write(byte[] b, int off, int len)