public class DCEPipeFile extends NetworkFile
Contains the details and state of a DCE/RPC special named pipe.
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 |
---|
DCEPipeFile(int id)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
closeFile()
Close the file
|
void |
DumpFile()
Dump the file details
|
void |
flushFile()
Flush any buffered output to the file
|
DCEBuffer |
getBufferedData()
Get the buffered data for the pipe
|
int |
getMaxReceiveFragmentSize()
Return the maximum receive fragment size
|
int |
getMaxTransmitFragmentSize()
Return the maximum transmit fragment size
|
int |
getPipeId()
Return the pipe type id
|
int |
getPipeState()
Return the named pipe state
|
DCEHandler |
getRequestHandler()
Return the pipes DCE/RPC handler
|
boolean |
hasBufferedData()
Determine if the pipe has any buffered data
|
boolean |
hasRequestHandler()
Determine if the pipe has a request handler
|
void |
openFile(boolean createFlag)
Open the file
|
int |
readFile(byte[] buf,
int len,
int pos,
long fileOff)
Read from the file
|
long |
seekFile(long pos,
int typ)
Move the file pointer
|
void |
setBufferedData(DCEBuffer buf)
Set buffered data for the pipe
|
void |
setMaxReceiveFragmentSize(int siz)
Set the maximum receive fragment size
|
void |
setMaxTransmitFragmentSize(int siz)
Set the maximum transmit fragment size
|
void |
setPipeState(int state)
Set the named pipe state flags
|
void |
setRequestHandler(DCEHandler handler)
Set the pipes DCE/RPC handler
|
void |
truncateFile(long siz)
Truncate, or extend, the file to the specified size
|
void |
writeFile(byte[] buf,
int len,
int pos,
long fileOff)
Write to the file
|
addLock, allowsOpenCloseViaNetworkFile, 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, toString, wasCreated
public final int getMaxReceiveFragmentSize()
public final int getMaxTransmitFragmentSize()
public final int getPipeState()
public final int getPipeId()
public final boolean hasRequestHandler()
public final DCEHandler getRequestHandler()
public final boolean hasBufferedData()
public final DCEBuffer getBufferedData()
public final void setBufferedData(DCEBuffer buf)
buf
- DCEBufferpublic final void setMaxReceiveFragmentSize(int siz)
siz
- intpublic final void setMaxTransmitFragmentSize(int siz)
siz
- intpublic final void setPipeState(int state)
state
- intpublic final void setRequestHandler(DCEHandler handler)
handler
- DCEHandlerpublic final void DumpFile()
public void closeFile() throws IOException
closeFile
in class NetworkFile
IOException
public void openFile(boolean createFlag) throws IOException
openFile
in class NetworkFile
createFlag
- booleanIOException
public int readFile(byte[] buf, int len, int pos, long fileOff) throws IOException
readFile
in class NetworkFile
buf
- byte[]len
- intpos
- intfileOff
- longIOException
public void flushFile() throws IOException
flushFile
in class NetworkFile
IOException
public long seekFile(long pos, int typ) throws IOException
seekFile
in class NetworkFile
pos
- longtyp
- intIOException
public void truncateFile(long siz) throws IOException
truncateFile
in class NetworkFile
siz
- longIOException
public void writeFile(byte[] buf, int len, int pos, long fileOff) throws IOException
writeFile
in class NetworkFile
buf
- byte[]len
- intpos
- intfileOff
- longIOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.