public class ReadOnlyLightVirtualFile extends LightVirtualFile
VirtualFile.PropName
EMPTY_ARRAY, PROP_ENCODING, PROP_HIDDEN, PROP_NAME, PROP_SYMLINK_TARGET, PROP_WRITABLE
EVER_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, toString
createChildData, createChildDirectory, delete, getAssignedFileType, getChildren, getFileSystem, getLength, getModificationStamp, getName, getOriginalFile, getParent, getPath, getTimeStamp, isDirectory, isValid, isWritable, move, refresh, rename, setBinaryContent, setBinaryContent, setFileType, setModificationStamp, setOriginalFile, setValid
contentsToByteArray, 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, storeCharset
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public 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 LightVirtualFile
public final void setWritable(boolean writable)
setWritable
in class LightVirtualFileBase
public java.io.OutputStream getOutputStream(java.lang.Object requestor, long newModificationStamp, long newTimeStamp) throws java.io.IOException
VirtualFile
Gets 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 LightVirtualFile
requestor
- 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 setOutputStream
java.io.IOException
- if an I/O error occursVirtualFile.getModificationStamp()