Class MalformedFileCreator


  • public class MalformedFileCreator
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createFile​(java.nio.file.Path file, boolean malformed)  
      static void createFile​(java.nio.file.Path file, boolean malformed, java.lang.String startContent, java.lang.String endContent)  
      static void createMalformedFile​(java.nio.file.Path file)  
      static void createMalformedFile​(java.nio.file.Path file, java.lang.String startContent, java.lang.String endContent)  
      static void createRegularFile​(java.nio.file.Path file, java.lang.String content)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MALFORMED_UTF8_BYTES

        public static final byte[] MALFORMED_UTF8_BYTES
    • Constructor Detail

      • MalformedFileCreator

        public MalformedFileCreator()
    • Method Detail

      • createMalformedFile

        public static void createMalformedFile​(java.nio.file.Path file)
      • createMalformedFile

        public static void createMalformedFile​(java.nio.file.Path file,
                                               java.lang.String startContent,
                                               java.lang.String endContent)
      • createRegularFile

        public static void createRegularFile​(java.nio.file.Path file,
                                             java.lang.String content)
      • createFile

        public static void createFile​(java.nio.file.Path file,
                                      boolean malformed)
      • createFile

        public static void createFile​(java.nio.file.Path file,
                                      boolean malformed,
                                      java.lang.String startContent,
                                      java.lang.String endContent)