public class TempNetworkFile
extends org.alfresco.jlan.smb.server.disk.JavaNetworkFile
implements org.alfresco.jlan.server.filesys.cache.NetworkFileStateInterface
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(java.io.File file,
java.lang.String netPath)
Create a new temporary file with no existing content.
|
TempNetworkFile(java.io.File file,
java.lang.String netPath,
java.io.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.
|
java.io.File |
getFile()
Access to the underlying file.
|
org.alfresco.jlan.server.filesys.cache.FileState |
getFileState() |
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) |
java.lang.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, seekFileaddLock, 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, wasCreatedpublic TempNetworkFile(java.io.File file,
java.lang.String netPath)
file - the underlying FilenetPath - where in the repo this file is going.public TempNetworkFile(java.io.File file,
java.lang.String netPath,
java.io.Reader existingContent)
file - netPath - existingContent - public java.io.File getFile()
public java.lang.String toString()
toString in class org.alfresco.jlan.server.filesys.NetworkFilepublic int readFile(byte[] buf,
int len,
int pos,
long fileOff)
throws java.io.IOException
readFile in class org.alfresco.jlan.smb.server.disk.JavaNetworkFilejava.io.IOExceptionpublic void writeFile(byte[] buf,
int len,
int pos)
throws java.io.IOException
writeFile in class org.alfresco.jlan.smb.server.disk.JavaNetworkFilejava.io.IOExceptionpublic void writeFile(byte[] buffer,
int length,
int position,
long fileOffset)
throws java.io.IOException
writeFile in class org.alfresco.jlan.smb.server.disk.JavaNetworkFilejava.io.IOExceptionpublic void truncateFile(long size)
throws java.io.IOException
truncateFile in class org.alfresco.jlan.smb.server.disk.JavaNetworkFilejava.io.IOExceptionpublic 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.NetworkFileStateInterfacepublic boolean allowsOpenCloseViaNetworkFile()
allowsOpenCloseViaNetworkFile in class org.alfresco.jlan.server.filesys.NetworkFilepublic void setChanged(boolean changed)
public boolean isChanged()
public boolean isModificationDateSetDirectly()
public void setModificationDateSetDirectly(boolean modificationDateSetDirectly)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.