public class SPIFileType extends LanguageFileType implements FileTypeIdentifiableByVirtualFile
Modifier and Type | Field and Description |
---|---|
static SPIFileType |
INSTANCE |
ARRAY_FACTORY, EMPTY_ARRAY
EDITABLE_COPY_PREFIX
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCharset(VirtualFile file,
byte [] content)
Returns the character set for the specified file.
|
java.lang.String |
getDefaultExtension()
Returns the default extension for files of the type.
|
java.lang.String |
getDescription()
Returns the user-readable description of the file type.
|
javax.swing.Icon |
getIcon()
Returns the icon used for showing files of the type.
|
java.lang.String |
getName()
Returns the name of the file type.
|
boolean |
isMyFileType(VirtualFile file) |
extractCharsetFromFileContent, extractCharsetFromFileContent, getLanguage, isBinary, isJVMDebuggingSupported, isReadOnly, isSecondary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isBinary, isReadOnly
getDisplayName
public static final SPIFileType INSTANCE
public boolean isMyFileType(VirtualFile file)
isMyFileType
in interface FileTypeIdentifiableByVirtualFile
public java.lang.String getName()
FileType
public java.lang.String getDescription()
FileType
getDescription
in interface FileType
public java.lang.String getDefaultExtension()
FileType
getDefaultExtension
in interface FileType
public javax.swing.Icon getIcon()
FileType
public java.lang.String getCharset(VirtualFile file, byte [] content)
FileType
getCharset
in interface FileType
getCharset
in class LanguageFileType
file
- The file for which the character set is requested.content
- File content.Charset
class.