code: public long getEncodedLength(final byte[] pArray) {
          // Calculate non-chunked size - rounded up to allow for padding
          // cast to long is needed to avoid possibility of overflow
          long len = ((pArray.length + unencodedBlockSize-1)  / unencodedBlockSize) * (long) encodedBlockSize;
          if (lineLength > 0) { // We're using chunking
              // Round up to nearest multiple
              len += ((len + lineLength-1) / lineLength) * chunkSeparatorLength;
          }
          return len;
      }
docs: Calculates the amount of space needed to encode the supplied array.
  
  @param pArray byte[] array which will later be encoded
  
  @return amount of space needed to encoded the supplied array.
  Returns a long since a max-len array will require > Integer.MAX_VALUE