public class TempNetworkFile extends org.alfresco.jlan.smb.server.disk.JavaNetworkFile implements org.alfresco.jlan.server.filesys.cache.NetworkFileStateInterface, NetworkFileLegacyReferenceCount
ATTRIBUTESONLY, Created, DelayedClose, DelayedWriteError, DeleteOnClose, IOPending, m_accessDate, m_allowedAccess, m_attrib, m_closed, m_createDate, m_dirId, m_fid, m_fileSize, m_fullName, m_grantedAccess, m_modifyDate, m_name, m_streamId, m_streamName, m_uniqueId, m_writeCount, READONLY, READWRITE, WRITEONLY
Constructor and Description |
---|
TempNetworkFile(File file,
String netPath)
Create a new temporary file with no existing content.
|
TempNetworkFile(File file,
String netPath,
Reader existingContent)
A new temporary network file with some existing content.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsOpenCloseViaNetworkFile()
Tell JLAN it needs to call disk.closeFile rather than short cutting.
|
int |
decrementLagacyOpenCount()
Decrement the legacy file open count
|
File |
getFile()
Access to the underlying file.
|
org.alfresco.jlan.server.filesys.cache.FileState |
getFileState() |
int |
getLegacyOpenCount()
Return the legacy open file count
|
int |
incrementLegacyOpenCount()
Increment the legacy file open count
|
boolean |
isChanged() |
boolean |
isModificationDateSetDirectly() |
int |
readFile(byte[] buf,
int len,
int pos,
long fileOff) |
void |
setChanged(boolean changed) |
void |
setFileState(org.alfresco.jlan.server.filesys.cache.FileState fileState) |
void |
setModificationDateSetDirectly(boolean modificationDateSetDirectly) |
String |
toString() |
void |
truncateFile(long size) |
void |
writeFile(byte[] buf,
int len,
int pos) |
void |
writeFile(byte[] buffer,
int length,
int position,
long fileOffset) |
closeFile, currentPosition, flushFile, isEndOfFile, openFile, seekFile
addLock, close, getAccessDate, getAccessToken, getAllowedAccess, getCreationDate, getDirectoryId, getFileAttributes, getFileId, getFileSize, getFileSizeInt, getFullName, getFullNameStream, getGrantedAccess, getGrantedAccessAsString, getLockAt, getLockList, getModifyDate, getName, getOpLock, getProtocolId, getStreamId, getStreamName, getUniqueId, getWriteCount, hasAccessDate, hasAccessToken, hasCreationDate, hasDelayedClose, hasDelayedWriteError, hasDeleteOnClose, hasIOPending, hasLocks, hasModifyDate, hasNTAttribute, hasOpLock, incrementWriteCount, isArchived, isClosed, isDirectory, isForce, isHidden, isReadOnly, isStream, isSystem, numberOfLocks, removeAllLocks, removeLock, setAccessDate, setAccessToken, setAllowedAccess, setAttributes, setClosed, setCreationDate, setDelayedClose, setDelayedWriteError, setDeleteOnClose, setDirectoryId, setFileId, setFileSize, setFileSize, setForce, setFullName, setGrantedAccess, setIOPending, setModifyDate, setName, setOpLock, setProtocolId, setStatusFlag, setStreamId, setStreamName, setUniqueId, setUniqueId, setUniqueId, wasCreated
public TempNetworkFile(File file, String netPath)
file
- the underlying FilenetPath
- where in the repo this file is going.public File getFile()
public String toString()
toString
in class org.alfresco.jlan.server.filesys.NetworkFile
public int readFile(byte[] buf, int len, int pos, long fileOff) throws IOException
readFile
in class org.alfresco.jlan.smb.server.disk.JavaNetworkFile
IOException
public void writeFile(byte[] buf, int len, int pos) throws IOException
writeFile
in class org.alfresco.jlan.smb.server.disk.JavaNetworkFile
IOException
public void writeFile(byte[] buffer, int length, int position, long fileOffset) throws IOException
writeFile
in class org.alfresco.jlan.smb.server.disk.JavaNetworkFile
IOException
public void truncateFile(long size) throws IOException
truncateFile
in class org.alfresco.jlan.smb.server.disk.JavaNetworkFile
IOException
public void setFileState(org.alfresco.jlan.server.filesys.cache.FileState fileState)
public org.alfresco.jlan.server.filesys.cache.FileState getFileState()
getFileState
in interface org.alfresco.jlan.server.filesys.cache.NetworkFileStateInterface
public boolean allowsOpenCloseViaNetworkFile()
allowsOpenCloseViaNetworkFile
in class org.alfresco.jlan.server.filesys.NetworkFile
public void setChanged(boolean changed)
public boolean isChanged()
public boolean isModificationDateSetDirectly()
public void setModificationDateSetDirectly(boolean modificationDateSetDirectly)
public final int incrementLegacyOpenCount()
incrementLegacyOpenCount
in interface NetworkFileLegacyReferenceCount
public final int decrementLagacyOpenCount()
decrementLagacyOpenCount
in interface NetworkFileLegacyReferenceCount
public final int getLegacyOpenCount()
getLegacyOpenCount
in interface NetworkFileLegacyReferenceCount
Copyright © 2005–2017 Alfresco Software. All rights reserved.