Class PdfSmartCopy.ByteStore

  • Enclosing class:
    PdfSmartCopy

    static class PdfSmartCopy.ByteStore
    extends java.lang.Object
    • Field Detail

      • b

        private final byte[] b
      • hash

        private final int hash
      • md5

        private java.security.MessageDigest md5
    • Constructor Detail

      • ByteStore

        ByteStore​(PRStream str,
                  java.util.HashMap<RefKey,​java.lang.Integer> serialized)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • ByteStore

        ByteStore​(PdfDictionary dict,
                  java.util.HashMap<RefKey,​java.lang.Integer> serialized)
           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • serObject

        private void serObject​(PdfObject obj,
                               int level,
                               ByteBuffer bb,
                               java.util.HashMap<RefKey,​java.lang.Integer> serialized)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • serDic

        private void serDic​(PdfDictionary dic,
                            int level,
                            ByteBuffer bb,
                            java.util.HashMap<RefKey,​java.lang.Integer> serialized)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • serArray

        private void serArray​(PdfArray array,
                              int level,
                              ByteBuffer bb,
                              java.util.HashMap<RefKey,​java.lang.Integer> serialized)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • calculateHash

        private static int calculateHash​(byte[] b)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object