Documentation of 'org.freehep.util.io.EEXECEncryption' Java class
EEXECEncryption
org.freehep.util.io

Class EEXECEncryption

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, EEXECConstants


    public class EEXECEncryption
    extends java.io.OutputStream
    implements EEXECConstants
    Encrypts using the EEXEC form (Used by Type 1 fonts).
    • Constructor Summary

      Constructors 
      Constructor and Description
      EEXECEncryption(java.io.OutputStream out)
      Creates an EEXECEncryption from given stream.
      EEXECEncryption(java.io.OutputStream out, int r)
      Creates an EEXECEncryption from given stream.
      EEXECEncryption(java.io.OutputStream out, int r, int n)
      Creates an EEXECEncryption from given stream.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close() 
      static int[] encryptString(int[] chars, int r, int n)
      Encrypt array of characters.
      void flush() 
      void write(int b) 
      • Methods inherited from class java.io.OutputStream

        write, write
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EEXECEncryption

        public EEXECEncryption(java.io.OutputStream out)
        Creates an EEXECEncryption from given stream.
        Parameters:
        out - stream to write
      • EEXECEncryption

        public EEXECEncryption(java.io.OutputStream out,
                               int r)
        Creates an EEXECEncryption from given stream.
        Parameters:
        out - stream to write
        r -
      • EEXECEncryption

        public EEXECEncryption(java.io.OutputStream out,
                               int r,
                               int n)
        Creates an EEXECEncryption from given stream.
        Parameters:
        out - stream to write
        r -
        n -
    • Method Detail

      • write

        public void write(int b)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.OutputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable
        Overrides:
        close in class java.io.OutputStream
        Throws:
        java.io.IOException
      • encryptString

        public static int[] encryptString(int[] chars,
                                          int r,
                                          int n)
                                   throws java.io.IOException
        Encrypt array of characters.
        Parameters:
        chars - int array to encrypt
        r -
        n -
        Returns:
        encrypted array
        Throws:
        java.io.IOException - if write fails (never happens)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.