/* * Decompiled with CFR 0.152. */ package javax.baja.io; import java.io.IOException; import java.io.OutputStream; import java.io.RandomAccessFile; public class RandomAccessFileOutputStream extends OutputStream { private RandomAccessFile out; private long fp; public void close() { } public void flush() throws IOException { this.out.getFD().sync(); } public void seek(long l) { this.fp = l; } public void write(int n) throws IOException { this.out.seek(this.fp); this.out.write(n); ++this.fp; } public void write(byte[] byArray) throws IOException { this.out.seek(this.fp); this.out.write(byArray); this.fp += (long)byArray.length; } public void write(byte[] byArray, int n, int n2) throws IOException { this.out.seek(this.fp); this.out.write(byArray, n, n2); this.fp += (long)n2; } public RandomAccessFileOutputStream(RandomAccessFile randomAccessFile) { this(randomAccessFile, 0L); } public RandomAccessFileOutputStream(RandomAccessFile randomAccessFile, long l) { this.out = randomAccessFile; this.fp = l; } }