Package org.apache.poi.hsmf.datatypes

Examples of org.apache.poi.hsmf.datatypes.StringChunk


    StringChunk chunk = new StringChunk(0x0E03, Types.UNICODE_STRING);
      assertEquals(chunk.getChunkId(), Chunks.DISPLAY_CC);
  }

  public void testDisplayBCCChunk() {
    StringChunk chunk = new StringChunk(0x0E02, Types.UNICODE_STRING);
      assertEquals(chunk.getChunkId(), Chunks.DISPLAY_BCC);
  }
View Full Code Here


    StringChunk chunk = new StringChunk(0x0E02, Types.UNICODE_STRING);
      assertEquals(chunk.getChunkId(), Chunks.DISPLAY_BCC);
  }

  public void testSubjectChunk() {
    Chunk chunk = new StringChunk(0x0037, Types.UNICODE_STRING);
      assertEquals(chunk.getChunkId(), Chunks.SUBJECT);
  }
View Full Code Here

                   chunk = new DirectoryChunk((DirectoryNode)entry, namePrefix, chunkId, type);
               }
               break;
            case Types.ASCII_STRING:
            case Types.UNICODE_STRING:
               chunk = new StringChunk(namePrefix, chunkId, type);
               break;
            }
         }
        
         if(chunk != null) {
View Full Code Here

            new FileInputStream(samples.getFile("quick.msg"))
      );
     
      // Check a few core things are present
      simple.getRoot().getEntry(
            (new StringChunk(Chunks.SUBJECT, Types.ASCII_STRING)).getEntryName()
      );
      simple.getRoot().getEntry(
            (new StringChunk(Chunks.DISPLAY_FROM, Types.ASCII_STRING)).getEntryName()
      );
     
      // Now load the file
      MAPIMessage msg = new MAPIMessage(simple);
      try {
View Full Code Here

*/
public class TestChunkData extends TestCase {
  private Chunks chunks = Chunks.getInstance(false);
 
  public void testChunkCreate() {
    StringChunk chunk = new StringChunk(0x0200, false);
    TestCase.assertEquals("__substg1.0_0200001E", chunk.getEntryName());
   
    /* test the lower and upper limits of the chunk ids */
    chunk = new StringChunk(0x0000, false);
    TestCase.assertEquals("__substg1.0_0000001E", chunk.getEntryName());
   
    chunk = new StringChunk(0xFFFF, false);
    TestCase.assertEquals("__substg1.0_FFFF001E", chunk.getEntryName());
   
    chunk = new StringChunk(0xFFFF, true);
    TestCase.assertEquals("__substg1.0_FFFF001F", chunk.getEntryName());
  }
View Full Code Here

    chunk = new StringChunk(0xFFFF, true);
    TestCase.assertEquals("__substg1.0_FFFF001F", chunk.getEntryName());
  }
 
  public void testTextBodyChunk() {
    StringChunk chunk = new StringChunk(0x1000, false);
    TestCase.assertEquals(chunk.getEntryName(), chunks.textBodyChunk.getEntryName());
  }
View Full Code Here

    StringChunk chunk = new StringChunk(0x1000, false);
    TestCase.assertEquals(chunk.getEntryName(), chunks.textBodyChunk.getEntryName());
  }

  public void testDisplayToChunk() {
    StringChunk chunk = new StringChunk(0x0E04, false);
    TestCase.assertEquals(chunk.getEntryName(), chunks.displayToChunk.getEntryName());
  }
View Full Code Here

    TestCase.assertEquals(chunk.getEntryName(), chunks.displayToChunk.getEntryName());
  }
 

  public void testDisplayCCChunk() {
    StringChunk chunk = new StringChunk(0x0E03, false);
    TestCase.assertEquals(chunk.getEntryName(), chunks.displayCCChunk.getEntryName());
  }
View Full Code Here

    StringChunk chunk = new StringChunk(0x0E03, false);
    TestCase.assertEquals(chunk.getEntryName(), chunks.displayCCChunk.getEntryName());
  }

  public void testDisplayBCCChunk() {
    StringChunk chunk = new StringChunk(0x0E02, false);
    TestCase.assertEquals(chunk.getEntryName(), chunks.displayBCCChunk.getEntryName());
  }
View Full Code Here

    StringChunk chunk = new StringChunk(0x0E02, false);
    TestCase.assertEquals(chunk.getEntryName(), chunks.displayBCCChunk.getEntryName());
  }
 
  public void testSubjectChunk() {
    Chunk chunk = new StringChunk(0x0037, false);
    TestCase.assertEquals(chunk.getEntryName(), chunks.subjectChunk.getEntryName());
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.hsmf.datatypes.StringChunk

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.