Projekt

Obecné

Profil

Stáhnout (774 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
package jdeserialize;
2

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

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