Class Utf8Validator


  • final class Utf8Validator
    extends java.lang.Object
    Checks UTF8 bytes for validity before converting it into a string
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean checking  
      private int codep  
      private int state  
      private static byte[] STATES  
      private static byte[] TYPES  
      private static int UTF8_ACCEPT  
      private static int UTF8_REJECT  
    • Constructor Summary

      Constructors 
      Constructor Description
      Utf8Validator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void check​(byte[] bytes)  
      void finish()  
      boolean isChecking()  
      private void write​(int b)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait