Examples of PointerContainingStream


Examples of org.apache.poi.hdgf.streams.PointerContainingStream

      System.err.println("\tFormat is " + ptr.getFormat() + "\t\t" + Long.toHexString(ptr.getFormat()));
      System.err.println("\tCompressed is " + ptr.destinationCompressed());
      System.err.println("\tStream is " + stream.getClass());

      if(stream instanceof PointerContainingStream) {
        PointerContainingStream pcs = (PointerContainingStream)stream;

        if(pcs.getPointedToStreams() != null && pcs.getPointedToStreams().length > 0) {
          System.err.println("\tContains " + pcs.getPointedToStreams().length + " other pointers/streams");
          for(int j=0; j<pcs.getPointedToStreams().length; j++) {
            Stream ss = pcs.getPointedToStreams()[j];
            Pointer sptr = ss.getPointer();
            System.err.println("\t\t" + j + " - Type is " + sptr.getType() + "\t\t" + Integer.toHexString(sptr.getType()));
            System.err.println("\t\t" + j + " - Length is " + sptr.getLength() + "\t\t" + Long.toHexString(sptr.getLength()));
          }
        }
View Full Code Here

Examples of org.apache.poi.hdgf.streams.PointerContainingStream

    assertEquals(20, hdgf.getTopLevelStreams().length);

    // 9th one should have children
    assertNotNull(trailer.getPointedToStreams()[8]);
    assertNotNull(trailer.getPointedToStreams()[8].getPointer());
    PointerContainingStream ps8 = (PointerContainingStream)
      trailer.getPointedToStreams()[8];
    assertNotNull(ps8.getPointedToStreams());
    assertEquals(8, ps8.getPointedToStreams().length);
  }
View Full Code Here

Examples of org.apache.poi.hdgf.streams.PointerContainingStream

    }
    return (String[])text.toArray( new String[text.size()] );
  }
  private void findText(Stream stream, ArrayList text) {
    if(stream instanceof PointerContainingStream) {
      PointerContainingStream ps = (PointerContainingStream)stream;
      for(int i=0; i<ps.getPointedToStreams().length; i++) {
        findText(ps.getPointedToStreams()[i], text);
      }
    }
    if(stream instanceof ChunkStream) {
      ChunkStream cs = (ChunkStream)stream;
      for(int i=0; i<cs.getChunks().length; i++) {
View Full Code Here

Examples of org.apache.poi.hdgf.streams.PointerContainingStream

    assertEquals(20, hdgf.getTopLevelStreams().length);
   
    // 9th one should have children
    assertNotNull(trailer.getPointedToStreams()[8]);
    assertNotNull(trailer.getPointedToStreams()[8].getPointer());
    PointerContainingStream ps8 = (PointerContainingStream)
      trailer.getPointedToStreams()[8];
    assertNotNull(ps8.getPointedToStreams());
    assertEquals(8, ps8.getPointedToStreams().length);
  }
View Full Code Here

Examples of org.apache.poi.hdgf.streams.PointerContainingStream

    assertEquals(20, hdgf.getTopLevelStreams().length);

    // 9th one should have children
    assertNotNull(trailer.getPointedToStreams()[8]);
    assertNotNull(trailer.getPointedToStreams()[8].getPointer());
    PointerContainingStream ps8 = (PointerContainingStream)
      trailer.getPointedToStreams()[8];
    assertNotNull(ps8.getPointedToStreams());
    assertEquals(8, ps8.getPointedToStreams().length);
  }
View Full Code Here

Examples of org.apache.poi.hdgf.streams.PointerContainingStream

      }
    }
    System.out.println(ind + "  First few bytes are\t" + ds);
   
    if(stream instanceof PointerContainingStream) {
      PointerContainingStream pcs = (PointerContainingStream)stream;
      System.out.println(ind + "  Has " +
          pcs.getPointedToStreams().length + " children:");
     
      for(int i=0; i<pcs.getPointedToStreams().length; i++) {
        dumpStream(pcs.getPointedToStreams()[i], (indent+1));
      }
    }
    if(stream instanceof ChunkStream) {
      ChunkStream cs = (ChunkStream)stream;
      System.out.println(ind + "  Has " + cs.getChunks().length +
View Full Code Here

Examples of org.apache.poi.hdgf.streams.PointerContainingStream

      System.err.println("\tFormat is " + ptr.getFormat() + "\t\t" + Long.toHexString(ptr.getFormat()));
      System.err.println("\tCompressed is " + ptr.destinationCompressed());
      System.err.println("\tStream is " + stream.getClass());
     
      if(stream instanceof PointerContainingStream) {
        PointerContainingStream pcs = (PointerContainingStream)stream;
       
        if(pcs.getPointedToStreams() != null && pcs.getPointedToStreams().length > 0) {
          System.err.println("\tContains " + pcs.getPointedToStreams().length + " other pointers/streams");
          for(int j=0; j<pcs.getPointedToStreams().length; j++) {
            Stream ss = pcs.getPointedToStreams()[j];
            Pointer sptr = ss.getPointer();
            System.err.println("\t\t" + j + " - Type is " + sptr.getType() + "\t\t" + Integer.toHexString(sptr.getType()));
            System.err.println("\t\t" + j + " - Length is " + sptr.getLength() + "\t\t" + Long.toHexString(sptr.getLength()));
          }
        }
View Full Code Here

Examples of org.apache.poi.hdgf.streams.PointerContainingStream

    }
    return (String[])text.toArray( new String[text.size()] );
  }
  private void findText(Stream stream, ArrayList text) {
    if(stream instanceof PointerContainingStream) {
      PointerContainingStream ps = (PointerContainingStream)stream;
      for(int i=0; i<ps.getPointedToStreams().length; i++) {
        findText(ps.getPointedToStreams()[i], text);
      }
    }
    if(stream instanceof ChunkStream) {
      ChunkStream cs = (ChunkStream)stream;
      for(int i=0; i<cs.getChunks().length; i++) {
View Full Code Here

Examples of org.apache.poi.hdgf.streams.PointerContainingStream

    }
    return (String[])text.toArray( new String[text.size()] );
  }
  private void findText(Stream stream, ArrayList text) {
    if(stream instanceof PointerContainingStream) {
      PointerContainingStream ps = (PointerContainingStream)stream;
      for(int i=0; i<ps.getPointedToStreams().length; i++) {
        findText(ps.getPointedToStreams()[i], text);
      }
    }
    if(stream instanceof ChunkStream) {
      ChunkStream cs = (ChunkStream)stream;
      for(int i=0; i<cs.getChunks().length; i++) {
View Full Code Here

Examples of org.apache.poi.hdgf.streams.PointerContainingStream

      System.err.println("\tFormat is " + ptr.getFormat() + "\t\t" + Long.toHexString(ptr.getFormat()));
      System.err.println("\tCompressed is " + ptr.destinationCompressed());
      System.err.println("\tStream is " + stream.getClass());

      if(stream instanceof PointerContainingStream) {
        PointerContainingStream pcs = (PointerContainingStream)stream;

        if(pcs.getPointedToStreams() != null && pcs.getPointedToStreams().length > 0) {
          System.err.println("\tContains " + pcs.getPointedToStreams().length + " other pointers/streams");
          for(int j=0; j<pcs.getPointedToStreams().length; j++) {
            Stream ss = pcs.getPointedToStreams()[j];
            Pointer sptr = ss.getPointer();
            System.err.println("\t\t" + j + " - Type is " + sptr.getType() + "\t\t" + Integer.toHexString(sptr.getType()));
            System.err.println("\t\t" + j + " - Length is " + sptr.getLength() + "\t\t" + Long.toHexString(sptr.getLength()));
          }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.