public enum FileType extends Enum<FileType>
enum representing the type parameter in the
add-file API method.| Enum Constant and Description |
|---|
android
Android
|
auto
Try to detect file type by extension or MIME type
|
chrome
Google Chrome Extension
|
csv
Comma Separated Values
|
dklang
Delphi DKLang
|
docx
Microsoft Office, OpenOffice.org Documents, Adobe InDesign Adobe FrameMaker
|
dtd
Mozilla DTD
|
flex
Flex
|
flsnp
MadCap Flare
|
fm_html
Jekyll HTML
|
fm_md
Jekyll Markdown
|
gettext
GNU GetText
|
haml
Haml
|
html
HTML
|
ini
Generic INI
|
joomla
Joomla localizable resources
|
json
Generic JSON
|
macosx
Mac OS X / iOS
|
md
Markdown
|
mediawiki
MediaWiki
|
nsh
NSIS Installer Resources
|
php
Hypertext Preprocessor
|
properties
Java
|
qtts
Nokia Qt
|
rc
Windows Resources
|
resjson
Windows 8 Metro
|
resw
Windows 8 Metro
|
resx
.NET, Windows Phone
|
sbv
Youtube .sbv
|
srt
SubRip .srt
|
txt
Plain Text
|
vtt
Video Subtitling and WebVTT
|
wxl
WiX Installer
|
xliff
XLIFF
|
xml
Generic XML
|
yaml
Ruby On Rails
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getExtensions() |
boolean |
hasExtension(String extension)
Determines if this
FileType is associated with the specified
extension. |
static FileType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileType auto
public static final FileType android
public static final FileType macosx
public static final FileType resx
public static final FileType properties
public static final FileType gettext
public static final FileType yaml
public static final FileType php
public static final FileType json
public static final FileType xml
public static final FileType ini
public static final FileType rc
public static final FileType resw
public static final FileType resjson
public static final FileType qtts
public static final FileType joomla
public static final FileType chrome
public static final FileType dtd
public static final FileType dklang
public static final FileType flex
public static final FileType nsh
public static final FileType wxl
public static final FileType xliff
public static final FileType html
public static final FileType haml
public static final FileType txt
public static final FileType csv
public static final FileType md
public static final FileType flsnp
public static final FileType fm_html
public static final FileType fm_md
public static final FileType mediawiki
public static final FileType docx
public static final FileType sbv
public static final FileType vtt
public static final FileType srt
public static FileType[] values()
for (FileType c : FileType.values()) System.out.println(c);
public static FileType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String[] getExtensions()
Copyright © 2018. All rights reserved.