Package org.apache.openmeetings.util
Class StoredFile
- java.lang.Object
-
- org.apache.openmeetings.util.StoredFile
-
public class StoredFile extends Object
-
-
Constructor Summary
Constructors Constructor Description StoredFile(String fullname, File f)StoredFile(String fullname, InputStream is)StoredFile(String name, String ext, File f)StoredFile(String name, String ext, InputStream is)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetAcceptAttr()StringgetExt()org.apache.tika.mime.MediaTypegetMime()StringgetName()booleanisAsIs()booleanisAudio()booleanisChart()booleanisImage()booleanisOffice()booleanisPdf()booleanisPng()booleanisPresentation()booleanisVideo()
-
-
-
Constructor Detail
-
StoredFile
public StoredFile(String fullname, InputStream is)
-
StoredFile
public StoredFile(String name, String ext, InputStream is)
-
StoredFile
public StoredFile(String fullname, File f) throws IOException
- Throws:
IOException
-
StoredFile
public StoredFile(String name, String ext, File f) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getAcceptAttr
public static String getAcceptAttr()
-
isOffice
public boolean isOffice()
-
isPresentation
public boolean isPresentation()
-
isPdf
public boolean isPdf()
-
isPng
public boolean isPng()
-
isImage
public boolean isImage()
-
isAudio
public boolean isAudio()
-
isVideo
public boolean isVideo()
-
isChart
public boolean isChart()
-
isAsIs
public boolean isAsIs()
-
getName
public String getName()
-
getExt
public String getExt()
-
getMime
public org.apache.tika.mime.MediaType getMime()
-
-