Projekt

Obecné

Profil

Stáhnout (792 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
package jdeserialize;
2
import java.io.*;
3

    
4
/**
5
 * Represents an opaque block of data written to the stream.  Primarily, these are used to
6
 * write class and object annotations by ObjectOutputStream overrides; they can also occur
7
 * inside an object, when the object overrides Serializable.writeObject().  Their
8
 * interpretation is hereby left to users.
9
 */
10
public class blockdata extends contentbase {
11
    /**
12
     * The block data read from the stream.
13
     */
14
    public byte[] buf;
15

    
16
    /**
17
     * Constructor.
18
     *
19
     * @param buf the block data
20
     */
21
    public blockdata(byte[] buf) {
22
        super(contenttype.BLOCKDATA);
23
        this.buf = buf;
24
    }
25
    public String toString() {
26
        return "[blockdata " + jdeserialize.hex(handle) + ": " + buf.length + " bytes]";
27
    }
28
}
(7-7/20)