19 package org.openoffice.xmerge.converter.palm;
21 import java.io.OutputStream;
22 import java.io.InputStream;
23 import java.io.DataOutputStream;
24 import java.io.DataInputStream;
25 import java.io.IOException;
73 data =
new byte[d.length];
75 System.arraycopy(d, 0, data, 0, d.length);
117 public void write(OutputStream outs)
throws IOException {
118 DataOutputStream out =
new DataOutputStream(outs);
119 out.writeByte(attributes);
120 out.writeShort(data.length);
132 public void read(InputStream ins)
throws IOException {
133 DataInputStream
in =
new DataInputStream(ins);
134 attributes = in.readByte();
135 int len = in.readUnsignedShort();
136 data =
new byte[len];
154 if (!(obj instanceof
Record)) {
157 Record rec = (
Record) obj;
161 if (rec.
getSize() == data.length) {
162 for (
int i = 0;
i < data.length;
i++) {
163 if (data[
i] != rec.
data[
i]) {
void read(InputStream ins)
Read the necessary data to create a PDB from the.
Record(byte[] d, byte attrs)
Constructor to create a.
exports com.sun.star. java
Record(byte[] d)
Constructor to create a.
void write(OutputStream outs)
Write out the.
boolean equals(Object obj)
Override equals method of.
byte[] getBytes()
This method returns the contents of this.
Record()
Default constructor.
int getSize()
This method returns the number of bytes in this object.
Contains the raw bytes for a.