Interface ContentMimeType


  • public interface ContentMimeType
    MIME type of the content of the JSON string.
    Author:
    leadpony
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean test​(byte[] decodedContent, Map<String,​String> parameters)
      Checks whether the specified content is of this MIME type or not.
      boolean test​(String content)
      Checks whether the specified content is of this MIME type or not.
      String toString()
      Returns the string representation of this MIME type.
    • Method Detail

      • toString

        String toString()
        Returns the string representation of this MIME type.
        Overrides:
        toString in class Object
        Returns:
        the string representation of this MIME type.
      • test

        boolean test​(String content)
        Checks whether the specified content is of this MIME type or not.
        Parameters:
        content - the content to check, never be null.
        Returns:
        true if the specified content is of this MIME type, false otherwise.
        Throws:
        NullPointerException - if the specified content is null.
      • test

        boolean test​(byte[] decodedContent,
                     Map<String,​String> parameters)
        Checks whether the specified content is of this MIME type or not.
        Parameters:
        decodedContent - the content to check, never be null.
        parameters - the parameters attached to this MIME type, never null.
        Returns:
        true if the specified content is of this MIME type, false otherwise.
        Throws:
        NullPointerException - if the specified decodedContent or parameters is null.