public class MimeTypeDescription
extends java.lang.Object
UtfUtil
MagicNumber
MagicMimeTypeIdentifier
MagicString
MagicNumber
Constructor and Description |
---|
MimeTypeDescription(java.lang.String mimeType,
java.lang.String parentType,
java.util.ArrayList extensions,
java.util.ArrayList magicStrings,
java.util.ArrayList magicNumbers,
boolean allowsLeadingWhiteSpace) |
Modifier and Type | Method and Description |
---|---|
void |
addRequiringType(MimeTypeDescription description)
Register a requiring MimeTypeDescription on this MimeTypeDescription.
|
boolean |
containsExtension(java.lang.String extension)
Returns whether the set of file extensions of this MimeTypeDescription contains the specified file
extension.
|
boolean |
getAllowsLeadingWhiteSpace() |
java.util.ArrayList |
getExtensions() |
java.util.ArrayList |
getMagicNumbers() |
java.util.ArrayList |
getMagicStrings() |
java.lang.String |
getMimeType() |
java.lang.String |
getParentType() |
java.util.ArrayList |
getRequiringTypes() |
boolean |
matches(byte[] bytes) |
boolean |
matches(char[] chars) |
public MimeTypeDescription(java.lang.String mimeType, java.lang.String parentType, java.util.ArrayList extensions, java.util.ArrayList magicStrings, java.util.ArrayList magicNumbers, boolean allowsLeadingWhiteSpace)
public java.lang.String getMimeType()
public java.lang.String getParentType()
public java.util.ArrayList getExtensions()
public java.util.ArrayList getMagicStrings()
public java.util.ArrayList getMagicNumbers()
public boolean getAllowsLeadingWhiteSpace()
public void addRequiringType(MimeTypeDescription description)
public java.util.ArrayList getRequiringTypes()
public boolean matches(char[] chars)
public boolean matches(byte[] bytes)
public boolean containsExtension(java.lang.String extension)
Copyright © 2001-2018 Jalios SA. All Rights Reserved.