Package org.pdfclown.tokens

Examples of org.pdfclown.tokens.ObjectStream


      // Ensure removal from previous object stream!
      uncompress();

      // Add to the object stream!
      ObjectStream objectStream = (ObjectStream)objectStreamDataObject;
      objectStream.put(xrefEntry.getNumber(),getDataObject());
      // Update its xref entry!
      xrefEntry.setUsage(UsageEnum.InUseCompressed);
      xrefEntry.setStreamNumber(objectStreamIndirectObject.getReference().getObjectNumber());
      xrefEntry.setOffset(-1); // Internal object index unknown (to set on object stream serialization -- see ObjectStream).
    }
View Full Code Here


  {
    if(!isCompressed())
      return;

    // Remove from its object stream!
    ObjectStream oldObjectStream = (ObjectStream)file.getIndirectObjects().get(xrefEntry.getStreamNumber()).getDataObject();
    oldObjectStream.remove(xrefEntry.getNumber());
    // Update its xref entry!
    xrefEntry.setUsage(UsageEnum.InUse);
    xrefEntry.setStreamNumber(-1); // No object stream.
    xrefEntry.setOffset(-1); // Offset unknown (to set on file serialization -- see CompressedWriter).
  }
View Full Code Here

            break;
          }
          case InUseCompressed:
          {
            // Get the object stream where its data object is stored!
            ObjectStream objectStream = (ObjectStream)file.getIndirectObjects().get(xrefEntry.getStreamNumber()).getDataObject();
            // Get the indirect data object!
            dataObject = objectStream.get(xrefEntry.getNumber());
            break;
          }
        }
      }
      catch(Exception e)
View Full Code Here

TOP

Related Classes of org.pdfclown.tokens.ObjectStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.