Interface TextFormat

    • Method Detail

      • getExtensions

        List<String> getExtensions()
        Gets the list of filename extensions for text in this format.
      • asHTML

        String asHTML​(String text)
        Expresses the given text string in HTML format.
      • supports

        default boolean supports​(File file)
        Description copied from interface: Typed
        Gets whether this object is compatible with the given data object.

        By default, this method will return true iff the data is assignable to the associated type given by Typed.getType(). But individual implementations may have other requirements beyond class assignability.

        Specified by:
        supports in interface Typed<File>
      • getType

        default Class<File> getType()
        Description copied from interface: Typed
        Gets the type associated with the object.
        Specified by:
        getType in interface Typed<File>