public abstract class EncodingManager extends EncodingRegistry
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_NATIVE2ASCII_SWITCH |
static java.lang.String |
PROP_PROPERTIES_FILES_ENCODING |
Constructor and Description |
---|
EncodingManager() |
Modifier and Type | Method and Description |
---|---|
abstract java.nio.charset.Charset |
getCachedCharsetFromContent(Document document) |
abstract java.nio.charset.Charset |
getDefaultCharsetForPropertiesFiles(VirtualFile virtualFile) |
abstract java.lang.String |
getDefaultCharsetName() |
abstract java.util.Collection<java.nio.charset.Charset> |
getFavorites() |
static EncodingManager |
getInstance() |
abstract boolean |
isNative2AsciiForPropertiesFiles() |
abstract void |
setDefaultCharsetForPropertiesFiles(VirtualFile virtualFile,
java.nio.charset.Charset charset) |
void |
setDefaultCharsetName(java.lang.String name) |
abstract void |
setNative2AsciiForPropertiesFiles(VirtualFile virtualFile,
boolean native2Ascii) |
boolean |
shouldAddBOMForNewUtf8File() |
doActionAndRestoreEncoding, getDefaultCharset, getEncoding, isNative2Ascii, setEncoding
public static final java.lang.String PROP_NATIVE2ASCII_SWITCH
public static final java.lang.String PROP_PROPERTIES_FILES_ENCODING
public static EncodingManager getInstance()
public abstract java.util.Collection<java.nio.charset.Charset> getFavorites()
public abstract boolean isNative2AsciiForPropertiesFiles()
isNative2AsciiForPropertiesFiles
in class EncodingRegistry
public abstract void setNative2AsciiForPropertiesFiles(VirtualFile virtualFile, boolean native2Ascii)
public abstract java.lang.String getDefaultCharsetName()
public void setDefaultCharsetName(java.lang.String name)
public abstract java.nio.charset.Charset getDefaultCharsetForPropertiesFiles(VirtualFile virtualFile)
getDefaultCharsetForPropertiesFiles
in class EncodingRegistry
public abstract void setDefaultCharsetForPropertiesFiles(VirtualFile virtualFile, java.nio.charset.Charset charset)
public abstract java.nio.charset.Charset getCachedCharsetFromContent(Document document)
public boolean shouldAddBOMForNewUtf8File()