PJX

com.etymon.pjx
Class PdfStream

java.lang.Object
  extended bycom.etymon.pjx.PdfObject
      extended bycom.etymon.pjx.PdfStream
All Implemented Interfaces:
java.lang.Cloneable

public class PdfStream
extends PdfObject

Represents the PDF stream object. This class is synchronized.


Constructor Summary
PdfStream(PdfDictionary d, java.nio.ByteBuffer bb)
          Constructs a stream object from a PDF dictionary and a ByteBuffer.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this instance with another PDF object for equality.
 java.nio.ByteBuffer getBuffer()
          Returns the byte sequence contained in this stream.
 PdfDictionary getDictionary()
          Returns this stream's dictionary.
 int hashCode()
          Returns a hash code for this object.
 
Methods inherited from class com.etymon.pjx.PdfObject
clone, filter, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdfStream

public PdfStream(PdfDictionary d,
                 java.nio.ByteBuffer bb)
Constructs a stream object from a PDF dictionary and a ByteBuffer. The stream's byte sequence is read from the ByteBuffer starting at its current position and ending at its limit.

Parameters:
d - the PDF dictionary.
bb - the ByteBuffer.
Method Detail

getBuffer

public java.nio.ByteBuffer getBuffer()
Returns the byte sequence contained in this stream.

Returns:
the byte sequence. The returned ByteBuffer object is read-only.

getDictionary

public PdfDictionary getDictionary()
Returns this stream's dictionary.

Returns:
the stream dictionary.

equals

public boolean equals(java.lang.Object obj)
Description copied from class: PdfObject
Compares this instance with another PDF object for equality.

Overrides:
equals in class PdfObject
Parameters:
obj - the object to compare this instance with.
Returns:
true if the PDF objects are equal.

hashCode

public int hashCode()
Description copied from class: PdfObject
Returns a hash code for this object.

Overrides:
hashCode in class PdfObject
Returns:
the hash code.

Copyright © 1998-2004 Etymon Systems, Inc.

The PDF data structures, operators, and specification are
Copyright © 1985-2004 Adobe Systems Incorporated.