Package org.tmatesoft.svn.core
Class SVNProperty
java.lang.Object
org.tmatesoft.svn.core.SVNProperty
public class SVNProperty
extends java.lang.Object
The SVNProperty class is a representation class for both versioned
properties (user-managed svn specials) and for metaproperties (untweakable)
supported by Subversion. This class holds string constants that are property
names, and gives some useful methods to operate with properties (in particular).
- Since:
- 1.2
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final java.lang.String
An "svn:entry:absent" SVN untweakable metaproperty.static final java.lang.String
An "svn:wc:ra_dav:activity-url" SVN untweakable metaproperty.static final SVNPropertyValue
static final java.lang.String
"cachable-props" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:changelist" SVN untweakable metaproperty.static final java.lang.String
SVNKit
specific property denoting a charset.static final java.lang.String
An "svn:entry:checksum" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:committed-date" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:committed-rev" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:conflict-new" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:conflict-old" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:conflict-wrk" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:copied" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:copyfrom-rev" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:copyfrom-url" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:corrupted" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:deleted" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:depth" SVN untweakable metaproperty.static final byte[]
CR (carriage return) EOL (end of line) byte array.static final byte[]
CR (carriage return) and LF (line feed) EOL (end of line) bytes array.static final byte[]
LF (line feed) EOL (end of line) byte array.static final java.lang.String
An "svn:eol-style" SVN special property.static final java.lang.String
One of the four possible values of theEOL_STYLE
property - "CR" (linefeed)static final java.lang.String
One of the four possible values of theEOL_STYLE
property - "CRLF"static final java.lang.String
One of the four possible values of theEOL_STYLE
property - "LF" (line feed)static final java.lang.String
One of the four possible values of theEOL_STYLE
property - "native"static final java.lang.String
An "svn:executable" SVN special property.static final java.lang.String
An "svn:externals" SVN special property.static final java.lang.String
static final java.lang.String
static final java.lang.String
static final java.lang.String
"has-prop-mods" SVN untweakable metaproperty.static final java.lang.String
"has-props" SVN untweakable metaproperty.static final java.lang.String
An "svn:ignore" SVN special property.static final java.lang.String
An "svn:entry:incomplete" SVN untweakable metaproperty.static final java.lang.String
static final java.lang.String
static final java.lang.String
An "svn:entry:keep-local" SVN untweakable metaproperty.static final java.lang.String
An "svn:keywords" SVN special property.static final java.lang.String
An "svn:entry:kind" SVN untweakable metaproperty.static final java.lang.String
One of the two possible values of theKIND
property - "dir"static final java.lang.String
One of the two possible values of theKIND
property - "file"static final java.lang.String
An "svn:entry:last-author" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:lock-comment" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:lock-creation-date" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:lock-owner" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:lock-token" SVN untweakable metaproperty.static final java.lang.String
static final java.lang.String
An "svn:mime-type" SVN special property.static final java.lang.String
An "svn:entry:name" SVN untweakable metaproperty.static final java.lang.String
Default value for theCHARSET
property denoting that the native charset should be used to encode a file during translation.static final java.lang.String
An "svn:needs-lock" SVN special property.private static final java.util.Set
static final java.lang.String
"present-props" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:prop-reject-file" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:prop-time" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:repos" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:revision" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:schedule" SVN untweakable metaproperty.static final java.lang.String
One of the three possible values of theSCHEDULE
property - "add"static final java.lang.String
One of the three possible values of theSCHEDULE
property - "delete"static final java.lang.String
One of the three possible values of theSCHEDULE
property - "replace"static final java.lang.String
An "svn:special" SVN special property.static final java.lang.String
An "svn:entry:" prefix.static final java.lang.String
An "svn:" prefix.static final java.lang.String
The namespace for revision properties which are used in repository synching operations.static final java.lang.String
An "svn:wc:" prefix.static final java.lang.String
An "svnkit:entry:" prefix.static final java.lang.String
SVNKit's own property namespace.static final java.lang.String
An "svnkit:entry:sha1-checksum" SVNKit untweakable metaproperty.static final java.lang.String
An "svn:entry:text-time" SVN untweakable metaproperty.static final java.lang.String
static final java.lang.String
A special property used in a commit transaction.static final java.lang.String
A special property used in a commit transaction.static final java.lang.String
An "svn:entry:url" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:uuid" SVN untweakable metaproperty.static final java.lang.String
An "svn:wc:ra_dav:version-url" SVN untweakable metaproperty.static final java.lang.String
An "svn:entry:working-size" SVN untweakable metaproperty.static final long
Default value of theWORKING_SIZE
property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addTextMimeType
(java.lang.String textMimeType) Adds custom mime-type value that should be considered as text.static boolean
booleanValue
(java.lang.String text) Converts a string representation of a boolean value to boolean.static void
Clears custom mime-types previously added.java.util.Set
Returns custom mime-types previously added.static SVNPropertyValue
getValueOfBooleanProperty
(java.lang.String propName) Returns the value for such boolean properties as "svn:executable", "svn:needs-lock" and "svn:special".static boolean
isBinaryMimeType
(java.lang.String mimeType) Says if the given MIME-type corresponds to a binary (non-textual) type.static boolean
isBooleanProperty
(java.lang.String propName) Checks whether the property is boolean.static boolean
isEntryProperty
(java.lang.String name) Says if the given property name starts with theSVN_ENTRY_PREFIX
prefix.static boolean
isRegularProperty
(java.lang.String name) Checks if a property is regular.static boolean
isSVNKitProperty
(java.lang.String name) Says if the given property name starts with theSVNKIT_PREFIX
.static boolean
isSVNProperty
(java.lang.String name) Says if the given property name starts with theSVN_PREFIX
prefix or with theSVNKIT_PREFIX
.static boolean
isTextMimeType
(java.lang.String mimeType) Says if the given MIME-type corresponds to a text type.static boolean
isUTF8
(java.lang.String charset) Says if the given charset is the name of UTF-8 encoding.static boolean
isWorkingCopyProperty
(java.lang.String name) Says if the given property name starts with theSVN_WC_PREFIX
prefix.static long
longValue
(java.lang.String text) Converts a string representation of a numeric value to a long value.static boolean
mimeTypeIsBinary
(java.lang.String mimeType) static java.lang.String
shortPropertyName
(java.lang.String longName) Returns a short name for the given property name - that is a name without any prefixes.static java.lang.String
toString
(boolean b) Converts a boolean value to a string representation.static java.lang.String
toString
(long i) Converts a long value to a string representation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SVN_PREFIX
public static final java.lang.String SVN_PREFIXAn "svn:" prefix.- See Also:
-
SVNKIT_PREFIX
public static final java.lang.String SVNKIT_PREFIXSVNKit's own property namespace.- See Also:
-
SVN_WC_PREFIX
public static final java.lang.String SVN_WC_PREFIXAn "svn:wc:" prefix.- See Also:
-
SVN_SYNC_PREFIX
public static final java.lang.String SVN_SYNC_PREFIXThe namespace for revision properties which are used in repository synching operations.- See Also:
-
TXN_CHECK_LOCKS
public static final java.lang.String TXN_CHECK_LOCKSA special property used in a commit transaction.- See Also:
-
TXN_CHECK_OUT_OF_DATENESS
public static final java.lang.String TXN_CHECK_OUT_OF_DATENESSA special property used in a commit transaction.- See Also:
-
SVN_ENTRY_PREFIX
public static final java.lang.String SVN_ENTRY_PREFIXAn "svn:entry:" prefix.- See Also:
-
SVNKIT_ENTRY_PREFIX
public static final java.lang.String SVNKIT_ENTRY_PREFIXAn "svnkit:entry:" prefix.- See Also:
-
EOL_STYLE
public static final java.lang.String EOL_STYLEAn "svn:eol-style" SVN special property.- See Also:
-
IGNORE
public static final java.lang.String IGNOREAn "svn:ignore" SVN special property.- See Also:
-
MIME_TYPE
public static final java.lang.String MIME_TYPEAn "svn:mime-type" SVN special property.- See Also:
-
KEYWORDS
public static final java.lang.String KEYWORDSAn "svn:keywords" SVN special property.- See Also:
-
EXECUTABLE
public static final java.lang.String EXECUTABLEAn "svn:executable" SVN special property.- See Also:
-
EXTERNALS
public static final java.lang.String EXTERNALSAn "svn:externals" SVN special property.- See Also:
-
SPECIAL
public static final java.lang.String SPECIALAn "svn:special" SVN special property.- See Also:
-
MERGE_INFO
public static final java.lang.String MERGE_INFO- Since:
- SVN 1.5
- See Also:
-
INHERITABLE_IGNORES
public static final java.lang.String INHERITABLE_IGNORES- Since:
- SVN 1.8
- See Also:
-
INHERITABLE_AUTO_PROPS
public static final java.lang.String INHERITABLE_AUTO_PROPS- Since:
- SVN 1.8
- See Also:
-
REVISION
public static final java.lang.String REVISIONAn "svn:entry:revision" SVN untweakable metaproperty.- See Also:
-
COMMITTED_REVISION
public static final java.lang.String COMMITTED_REVISIONAn "svn:entry:committed-rev" SVN untweakable metaproperty.- See Also:
-
COMMITTED_DATE
public static final java.lang.String COMMITTED_DATEAn "svn:entry:committed-date" SVN untweakable metaproperty.- See Also:
-
HAS_PROPS
public static final java.lang.String HAS_PROPS"has-props" SVN untweakable metaproperty.- Since:
- 1.1, new in Subversion 1.4
- See Also:
-
HAS_PROP_MODS
public static final java.lang.String HAS_PROP_MODS"has-prop-mods" SVN untweakable metaproperty.- Since:
- 1.1, new in Subversion 1.4
- See Also:
-
CACHABLE_PROPS
public static final java.lang.String CACHABLE_PROPS"cachable-props" SVN untweakable metaproperty.- Since:
- 1.1, new in Subversion 1.4
- See Also:
-
PRESENT_PROPS
public static final java.lang.String PRESENT_PROPS"present-props" SVN untweakable metaproperty.- Since:
- 1.1, new in Subversion 1.4
- See Also:
-
KEEP_LOCAL
public static final java.lang.String KEEP_LOCALAn "svn:entry:keep-local" SVN untweakable metaproperty.- Since:
- 1.2.0, new in Subversion 1.5.0
- See Also:
-
CHANGELIST
public static final java.lang.String CHANGELISTAn "svn:entry:changelist" SVN untweakable metaproperty.- Since:
- 1.2.0, new in Subversion 1.5.0
- See Also:
-
WORKING_SIZE
public static final java.lang.String WORKING_SIZEAn "svn:entry:working-size" SVN untweakable metaproperty.- Since:
- 1.2.0, new in Subversion 1.5.0
- See Also:
-
DEPTH
public static final java.lang.String DEPTHAn "svn:entry:depth" SVN untweakable metaproperty.- Since:
- 1.2.0, new in Subversion 1.5.0
- See Also:
-
FILE_EXTERNAL_PATH
public static final java.lang.String FILE_EXTERNAL_PATH- Since:
- 1.3, new in Subversion 1.6
- See Also:
-
FILE_EXTERNAL_REVISION
public static final java.lang.String FILE_EXTERNAL_REVISION- Since:
- 1.3, new in Subversion 1.6
- See Also:
-
FILE_EXTERNAL_PEG_REVISION
public static final java.lang.String FILE_EXTERNAL_PEG_REVISION- Since:
- 1.3, new in Subversion 1.6
- See Also:
-
TREE_CONFLICT_DATA
public static final java.lang.String TREE_CONFLICT_DATA- Since:
- 1.3, new in Subversion 1.6
- See Also:
-
CHECKSUM
public static final java.lang.String CHECKSUMAn "svn:entry:checksum" SVN untweakable metaproperty.- See Also:
-
SVNKIT_SHA1_CHECKSUM
public static final java.lang.String SVNKIT_SHA1_CHECKSUMAn "svnkit:entry:sha1-checksum" SVNKit untweakable metaproperty.- See Also:
-
URL
public static final java.lang.String URLAn "svn:entry:url" SVN untweakable metaproperty.- See Also:
-
COPYFROM_URL
public static final java.lang.String COPYFROM_URLAn "svn:entry:copyfrom-url" SVN untweakable metaproperty.- See Also:
-
COPYFROM_REVISION
public static final java.lang.String COPYFROM_REVISIONAn "svn:entry:copyfrom-rev" SVN untweakable metaproperty.- See Also:
-
SCHEDULE
public static final java.lang.String SCHEDULEAn "svn:entry:schedule" SVN untweakable metaproperty.- See Also:
-
COPIED
public static final java.lang.String COPIEDAn "svn:entry:copied" SVN untweakable metaproperty.- See Also:
-
LAST_AUTHOR
public static final java.lang.String LAST_AUTHORAn "svn:entry:last-author" SVN untweakable metaproperty.- See Also:
-
UUID
public static final java.lang.String UUIDAn "svn:entry:uuid" SVN untweakable metaproperty.- See Also:
-
REPOS
public static final java.lang.String REPOSAn "svn:entry:repos" SVN untweakable metaproperty.- See Also:
-
PROP_TIME
public static final java.lang.String PROP_TIMEAn "svn:entry:prop-time" SVN untweakable metaproperty.- See Also:
-
TEXT_TIME
public static final java.lang.String TEXT_TIMEAn "svn:entry:text-time" SVN untweakable metaproperty.- See Also:
-
NAME
public static final java.lang.String NAMEAn "svn:entry:name" SVN untweakable metaproperty.- See Also:
-
KIND
public static final java.lang.String KINDAn "svn:entry:kind" SVN untweakable metaproperty.- See Also:
-
CONFLICT_OLD
public static final java.lang.String CONFLICT_OLDAn "svn:entry:conflict-old" SVN untweakable metaproperty.- See Also:
-
CONFLICT_NEW
public static final java.lang.String CONFLICT_NEWAn "svn:entry:conflict-new" SVN untweakable metaproperty.- See Also:
-
CONFLICT_WRK
public static final java.lang.String CONFLICT_WRKAn "svn:entry:conflict-wrk" SVN untweakable metaproperty.- See Also:
-
PROP_REJECT_FILE
public static final java.lang.String PROP_REJECT_FILEAn "svn:entry:prop-reject-file" SVN untweakable metaproperty.- See Also:
-
DELETED
public static final java.lang.String DELETEDAn "svn:entry:deleted" SVN untweakable metaproperty.- See Also:
-
ABSENT
public static final java.lang.String ABSENTAn "svn:entry:absent" SVN untweakable metaproperty.- See Also:
-
INCOMPLETE
public static final java.lang.String INCOMPLETEAn "svn:entry:incomplete" SVN untweakable metaproperty.- See Also:
-
CORRUPTED
public static final java.lang.String CORRUPTEDAn "svn:entry:corrupted" SVN untweakable metaproperty.- See Also:
-
WC_URL
public static final java.lang.String WC_URLAn "svn:wc:ra_dav:version-url" SVN untweakable metaproperty.- See Also:
-
ACTIVITY_URL
public static final java.lang.String ACTIVITY_URLAn "svn:wc:ra_dav:activity-url" SVN untweakable metaproperty.- See Also:
-
LOCK_TOKEN
public static final java.lang.String LOCK_TOKENAn "svn:entry:lock-token" SVN untweakable metaproperty.- See Also:
-
LOCK_COMMENT
public static final java.lang.String LOCK_COMMENTAn "svn:entry:lock-comment" SVN untweakable metaproperty.- See Also:
-
LOCK_OWNER
public static final java.lang.String LOCK_OWNERAn "svn:entry:lock-owner" SVN untweakable metaproperty.- See Also:
-
LOCK_CREATION_DATE
public static final java.lang.String LOCK_CREATION_DATEAn "svn:entry:lock-creation-date" SVN untweakable metaproperty.- See Also:
-
NEEDS_LOCK
public static final java.lang.String NEEDS_LOCKAn "svn:needs-lock" SVN special property.- See Also:
-
KIND_DIR
public static final java.lang.String KIND_DIROne of the two possible values of theKIND
property - "dir"- See Also:
-
KIND_FILE
public static final java.lang.String KIND_FILEOne of the two possible values of theKIND
property - "file"- See Also:
-
EOL_STYLE_LF
public static final java.lang.String EOL_STYLE_LFOne of the four possible values of theEOL_STYLE
property - "LF" (line feed)- See Also:
-
EOL_STYLE_CR
public static final java.lang.String EOL_STYLE_CROne of the four possible values of theEOL_STYLE
property - "CR" (linefeed)- See Also:
-
EOL_STYLE_CRLF
public static final java.lang.String EOL_STYLE_CRLFOne of the four possible values of theEOL_STYLE
property - "CRLF"- See Also:
-
EOL_STYLE_NATIVE
public static final java.lang.String EOL_STYLE_NATIVEOne of the four possible values of theEOL_STYLE
property - "native"- See Also:
-
EOL_LF_BYTES
public static final byte[] EOL_LF_BYTESLF (line feed) EOL (end of line) byte array. -
EOL_CRLF_BYTES
public static final byte[] EOL_CRLF_BYTESCR (carriage return) and LF (line feed) EOL (end of line) bytes array. -
EOL_CR_BYTES
public static final byte[] EOL_CR_BYTESCR (carriage return) EOL (end of line) byte array. -
CHARSET
public static final java.lang.String CHARSETSVNKit
specific property denoting a charset. A user may set this property on files if he would like to fix the charset of the file. Then when checking out, exporting, updating, etc. files with such properties set on them will be translated (encoded) using the charset value of this property. Note that to take advantage of this property a user must utilize a corresponging version of theSVNKit
library supporting this property.- See Also:
-
NATIVE
public static final java.lang.String NATIVEDefault value for theCHARSET
property denoting that the native charset should be used to encode a file during translation. The native charset name will be fetched via a call toISVNOptions.getNativeCharset()
.- See Also:
-
SCHEDULE_ADD
public static final java.lang.String SCHEDULE_ADDOne of the three possible values of theSCHEDULE
property - "add"- See Also:
-
SCHEDULE_DELETE
public static final java.lang.String SCHEDULE_DELETEOne of the three possible values of theSCHEDULE
property - "delete"- See Also:
-
SCHEDULE_REPLACE
public static final java.lang.String SCHEDULE_REPLACEOne of the three possible values of theSCHEDULE
property - "replace"- See Also:
-
WORKING_SIZE_UNKNOWN
public static final long WORKING_SIZE_UNKNOWNDefault value of theWORKING_SIZE
property.- Since:
- 1.2.0, new in Subversion 1.5.0
- See Also:
-
BOOLEAN_PROPERTY_VALUE
Default value for such properties asEXECUTABLE
,NEEDS_LOCK
,SPECIAL
. Used only bySVNKit
internals, never stored in a working copy.- Since:
- 1.2.0
-
ourTextMimeTypes
private static final java.util.Set ourTextMimeTypes
-
-
Constructor Details
-
SVNProperty
public SVNProperty()
-
-
Method Details
-
isWorkingCopyProperty
public static boolean isWorkingCopyProperty(java.lang.String name) Says if the given property name starts with theSVN_WC_PREFIX
prefix.- Parameters:
name
- a property name to check- Returns:
- true if
name
is not null and starts with theSVN_WC_PREFIX
prefix, otherwise false
-
isEntryProperty
public static boolean isEntryProperty(java.lang.String name) Says if the given property name starts with theSVN_ENTRY_PREFIX
prefix.- Parameters:
name
- a property name to check- Returns:
- true if
name
is not null and starts with theSVN_ENTRY_PREFIX
prefix, otherwise false
-
isSVNProperty
public static boolean isSVNProperty(java.lang.String name) Says if the given property name starts with theSVN_PREFIX
prefix or with theSVNKIT_PREFIX
.- Parameters:
name
- a property name to check- Returns:
- true if
name
is not null and starts with theSVN_PREFIX
prefix or with theSVNKIT_PREFIX
prefix, otherwise false
-
isSVNKitProperty
public static boolean isSVNKitProperty(java.lang.String name) Says if the given property name starts with theSVNKIT_PREFIX
.- Parameters:
name
- a property name to check- Returns:
- true if
name
is not null and starts with theSVNKIT_PREFIX
prefix, otherwise false
-
isRegularProperty
public static boolean isRegularProperty(java.lang.String name) Checks if a property is regular. A property is considered to be regular if it is not null and does not start neither withSVN_WC_PREFIX
nor withSVN_ENTRY_PREFIX
.- Parameters:
name
- a property name- Returns:
- true if regular, otherwise false
-
isTextMimeType
public static boolean isTextMimeType(java.lang.String mimeType) Says if the given MIME-type corresponds to a text type.- Parameters:
mimeType
- a value of a fileMIME_TYPE
property- Returns:
- true if
mimeType
is either null or is a text type (starts with "text/") - See Also:
-
isBinaryMimeType
public static boolean isBinaryMimeType(java.lang.String mimeType) Says if the given MIME-type corresponds to a binary (non-textual) type.- Parameters:
mimeType
- a value of a fileMIME_TYPE
property- Returns:
- true if
mimeType
is not a text type - See Also:
-
isUTF8
public static boolean isUTF8(java.lang.String charset) Says if the given charset is the name of UTF-8 encoding.- Parameters:
charset
- a value of a fileCHARSET
property- Returns:
- true if
charset
is the name of UTF-8 encoding
-
booleanValue
public static boolean booleanValue(java.lang.String text) Converts a string representation of a boolean value to boolean. Useful to convert values of theCOPIED
property.- Parameters:
text
- a string to convert to a boolean value- Returns:
- true if and only if
text
is not null and is equal, ignoring case, to the string "true"
-
longValue
public static long longValue(java.lang.String text) Converts a string representation of a numeric value to a long value. Useful to convert revision numbers.- Parameters:
text
- a string to convert to a long value- Returns:
- a long representation of the given string; -1 is returned if the string can not be parsed
-
toString
public static java.lang.String toString(boolean b) Converts a boolean value to a string representation. Useful to convert values of theCOPIED
property.- Parameters:
b
- a boolean value- Returns:
- a string representation of
b
-
toString
public static java.lang.String toString(long i) Converts a long value to a string representation. Useful to convert revision numbers.- Parameters:
i
- a long value- Returns:
- a string representation of
i
-
shortPropertyName
public static java.lang.String shortPropertyName(java.lang.String longName) Returns a short name for the given property name - that is a name without any prefixes.- Parameters:
longName
- a property name- Returns:
- a property short name
-
getValueOfBooleanProperty
Returns the value for such boolean properties as "svn:executable", "svn:needs-lock" and "svn:special". Used by internals.- Parameters:
propName
- a property name- Returns:
- the property value "*", or null if the property is not boolean
- Since:
- 1.1
- See Also:
-
isBooleanProperty
public static boolean isBooleanProperty(java.lang.String propName) Checks whether the property is boolean.- Parameters:
propName
- a property name- Returns:
- true if boolean, otherwise false
- Since:
- 1.1
-
addTextMimeType
public static void addTextMimeType(java.lang.String textMimeType) Adds custom mime-type value that should be considered as text. Otherwise only 'null' mime-types and those starting with 'text/' are considered as text. -
mimeTypeIsBinary
public static boolean mimeTypeIsBinary(java.lang.String mimeType) -
getTextMimeTypes
public java.util.Set getTextMimeTypes()Returns custom mime-types previously added. -
clearTextMimeTypes
public static void clearTextMimeTypes()Clears custom mime-types previously added.
-