Class PDFPassword.CharsetEncoderGenerator

java.lang.Object
com.sun.pdfview.decrypt.PDFPassword.CharsetEncoderGenerator
All Implemented Interfaces:
PDFPassword.PasswordByteGenerator
Direct Known Subclasses:
PDFPassword.IdentityEncodingByteGenerator, PDFPassword.PDFDocEncodingByteGenerator
Enclosing class:
PDFPassword

private abstract static class PDFPassword.CharsetEncoderGenerator extends Object implements PDFPassword.PasswordByteGenerator
Converts strings to byte by employing a CharsetEncoder and a configurable mechanism to replace or ignore characters that are unrepresentable according to the encoder.
  • Field Details

    • replacementByte

      private Byte replacementByte
  • Constructor Details

    • CharsetEncoderGenerator

      protected CharsetEncoderGenerator(Byte replacementByte)
      Class constructor
      Parameters:
      replacementByte - the byte to replace to use to represent any unrepresentable character, or null if unrepresentable characters should just be ignored
  • Method Details