Interface LineEnding.Policy

  • All Superinterfaces:
    NoLambda, java.io.Serializable
    Enclosing class:
    LineEnding

    public static interface LineEnding.Policy
    extends java.io.Serializable, NoLambda
    A policy for line endings which can vary based on the specific file being requested.
    • Method Detail

      • getEndingFor

        java.lang.String getEndingFor​(java.io.File file)
        Returns the line ending appropriate for the given file.
      • isUnix

        default boolean isUnix​(java.io.File file)
        Returns true iff this file has unix line endings.