public abstract class FakeFileType extends java.lang.Object implements FileTypeIdentifiableByVirtualFile
ARRAY_FACTORY, EMPTY_ARRAYEDITABLE_COPY_PREFIX| Constructor and Description |
|---|
FakeFileType() |
| 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.
|
javax.swing.Icon |
getIcon()
Returns the icon used for showing files of the type.
|
boolean |
isBinary()
Returns
true if files of the specified type contain binary data. |
boolean |
isReadOnly()
Returns
true if the specified file type is read-only. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMyFileTypegetDescription, getNamegetDisplayNamepublic java.lang.String getDefaultExtension()
FileTypegetDefaultExtension in interface FileTypepublic javax.swing.Icon getIcon()
FileTypepublic boolean isBinary()
FileTypetrue if files of the specified type contain binary data. Used for source control, to-do items scanning and other purposes.public boolean isReadOnly()
FileTypetrue if the specified file type is read-only. Read-only file types are not shown in the "File Types" settings dialog,
and users cannot change the extensions associated with the file type.isReadOnly in interface FileTypetrue if the file type is read-only, false otherwise.public java.lang.String getCharset(VirtualFile file, byte [] content)
FileTypegetCharset in interface FileTypefile - The file for which the character set is requested.content - File content.Charset class.