Package snap.web

Class DataType

java.lang.Object
snap.web.DataType

public class DataType extends Object
A class to describe type of content in WebFile (from WebURL).
  • Field Details

    • Class

      public static final DataType Class
    • HTML

      public static final DataType HTML
    • Java

      public static final DataType Java
    • Midi

      public static final DataType Midi
    • PDF

      public static final DataType PDF
    • ReportFile

      public static final DataType ReportFile
    • Text

      public static final DataType Text
    • Wav

      public static final DataType Wav
    • MP3

      public static final DataType MP3
    • Settings

      public static final DataType Settings
    • Unknown

      public static final DataType Unknown
  • Constructor Details

    • DataType

      public DataType(String aType)
      Creates a new content type.
  • Method Details

    • getPathDataType

      public static DataType getPathDataType(String aPath)
      Returns the default content type for a path.
    • isImageType

      public static boolean isImageType(String aPath)
      Returns whether type is image.