public class ReadOnlyLightVirtualFile extends LightVirtualFile
VirtualFile.PropNameEMPTY_ARRAY, PROP_ENCODING, PROP_HIDDEN, PROP_NAME, PROP_SYMLINK_TARGET, PROP_WRITABLEEVER_CHANGED, NEVER_CHANGED| Constructor and Description |
|---|
ReadOnlyLightVirtualFile(java.lang.String name,
Language language,
java.lang.CharSequence text) |
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
getOutputStream(java.lang.Object requestor,
long newModificationStamp,
long newTimeStamp)
Gets the
OutputStream for this file and sets modification stamp and time stamp to the specified values
after closing the stream. |
void |
setContent(java.lang.Object requestor,
java.lang.CharSequence content,
boolean fireEvent) |
void |
setWritable(boolean writable) |
contentsToByteArray, getContent, getInputStream, getLanguage, isTooLargeForIntelligence, setLanguage, toStringcreateChildData, createChildDirectory, delete, getAssignedFileType, getChildren, getFileSystem, getLength, getModificationStamp, getName, getOriginalFile, getParent, getPath, getTimeStamp, isDirectory, isValid, isWritable, move, refresh, rename, setBinaryContent, setBinaryContent, setFileType, setModificationStamp, setOriginalFile, setValidcontentsToByteArray, copy, exists, findChild, findFileByRelativePath, findOrCreateChildData, getBOM, getCanonicalFile, getCanonicalPath, getCharset, getDetectedLineSeparator, getExtension, getFileType, getModificationCount, getNameSequence, getNameWithoutExtension, getOutputStream, getPresentableName, getPresentableUrl, getUrl, is, isCharsetSet, isInLocalFileSystem, isRecursiveOrCircularSymLink, isValidName, nameEquals, refresh, setBinaryContent, setBOM, setCharset, setCharset, setCharset, setDetectedLineSeparator, setPreloadedContentHint, storeCharsetchangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMappublic ReadOnlyLightVirtualFile(java.lang.String name,
Language language,
java.lang.CharSequence text)
public final void setContent(java.lang.Object requestor,
java.lang.CharSequence content,
boolean fireEvent)
setContent in class LightVirtualFilepublic final void setWritable(boolean writable)
setWritable in class LightVirtualFileBasepublic java.io.OutputStream getOutputStream(java.lang.Object requestor,
long newModificationStamp,
long newTimeStamp)
throws java.io.IOException
VirtualFileGets the OutputStream for this file and sets modification stamp and time stamp to the specified values
after closing the stream.
Normally, you should not use this method.
Writes BOM first, if there is any. See Unicode Byte Order Mark FAQ for an explanation.
getOutputStream in class LightVirtualFilerequestor - any object to control who called this method. Note that
it is considered to be an external change if requestor is null.
See VirtualFileEvent.getRequestor() and SafeWriteRequestor.newModificationStamp - new modification stamp or -1 if no special value should be setnewTimeStamp - new time stamp or -1 if no special value should be setOutputStreamjava.io.IOException - if an I/O error occursVirtualFile.getModificationStamp()