Class ZipPartStore.ByteArray

java.lang.Object
org.docx4j.openpackaging.io3.stores.ZipPartStore.ByteArray
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ZipPartStore

public static class ZipPartStore.ByteArray
extends java.lang.Object
implements java.io.Serializable
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    ByteArray​(byte[] bytes)  
    ByteArray​(java.nio.ByteBuffer bb, java.lang.String mimetype)  
  • Method Summary

    Modifier and Type Method Description
    byte[] getBytes()  
    java.io.InputStream getInputStream()  
    int getLength()  
    java.lang.String getMimetype()  
    void setBytes​(byte[] bytes)
    Replace the contents.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ByteArray

      public ByteArray​(byte[] bytes)
    • ByteArray

      public ByteArray​(java.nio.ByteBuffer bb, java.lang.String mimetype)
  • Method Details

    • getBytes

      public byte[] getBytes()
    • setBytes

      public void setBytes​(byte[] bytes)
      Replace the contents. Not intended for direct use by user code.
      Parameters:
      bytes -
      Since:
      3.3.2
    • getMimetype

      public java.lang.String getMimetype()
    • getInputStream

      public java.io.InputStream getInputStream()
    • getLength

      public int getLength()