Package snap.web
Class DataType
java.lang.Object
snap.web.DataType
A class to describe type of content in WebFile (from WebURL).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataType
getPathDataType
(String aPath) Returns the default content type for a path.static boolean
isImageType
(String aPath) Returns whether type is image.
-
Field Details
-
Class
-
HTML
-
Java
-
Midi
-
PDF
-
ReportFile
-
Text
-
Wav
-
MP3
-
Settings
-
Unknown
-
-
Constructor Details
-
DataType
Creates a new content type.
-
-
Method Details
-
getPathDataType
Returns the default content type for a path. -
isImageType
Returns whether type is image.
-