Package jcifs.internal.smb1.com
Class SmbComNTCreateAndXResponse
- java.lang.Object
-
- jcifs.internal.smb1.ServerMessageBlock
-
- jcifs.internal.smb1.AndXServerMessageBlock
-
- jcifs.internal.smb1.com.SmbComNTCreateAndXResponse
-
- All Implemented Interfaces:
CommonServerMessageBlock
,CommonServerMessageBlockRequest
,CommonServerMessageBlockResponse
,RequestWithPath
,SmbBasicFileInfo
,Message
,Request
,Response
public class SmbComNTCreateAndXResponse extends AndXServerMessageBlock implements SmbBasicFileInfo
-
-
Field Summary
-
Fields inherited from class jcifs.internal.smb1.ServerMessageBlock
batchLevel, byteCount, digest, errorCode, flags2, headerStart, length, mid, path, pid, SMB_COM_CHECK_DIRECTORY, SMB_COM_CLOSE, SMB_COM_CREATE_DIRECTORY, SMB_COM_DELETE, SMB_COM_DELETE_DIRECTORY, SMB_COM_ECHO, SMB_COM_FIND_CLOSE2, SMB_COM_LOCKING_ANDX, SMB_COM_LOGOFF_ANDX, SMB_COM_MOVE, SMB_COM_NEGOTIATE, SMB_COM_NT_CANCEL, SMB_COM_NT_CREATE_ANDX, SMB_COM_NT_TRANSACT, SMB_COM_NT_TRANSACT_SECONDARY, SMB_COM_OPEN_ANDX, SMB_COM_QUERY_INFORMATION, SMB_COM_READ_ANDX, SMB_COM_RENAME, SMB_COM_SEEK, SMB_COM_SESSION_SETUP_ANDX, SMB_COM_SET_INFORMATION, SMB_COM_TRANSACTION, SMB_COM_TRANSACTION_SECONDARY, SMB_COM_TRANSACTION2, SMB_COM_TREE_CONNECT_ANDX, SMB_COM_TREE_DISCONNECT, SMB_COM_WRITE, SMB_COM_WRITE_ANDX, tid, uid, wordCount
-
-
Constructor Summary
Constructors Constructor Description SmbComNTCreateAndXResponse(Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAllocationSize()
int
getAttributes()
int
getCreateAction()
long
getCreateTime()
long
getCreationTime()
int
getDeviceState()
long
getEndOfFile()
int
getExtFileAttributes()
int
getFid()
int
getFileType()
long
getLastAccessTime()
long
getLastWriteTime()
byte
getOplockLevel()
long
getSize()
boolean
isExtended()
protected int
readBytesWireFormat(byte[] buffer, int bufferIndex)
protected int
readParameterWordsWireFormat(byte[] buffer, int bufferIndex)
void
setExtended(boolean isExtended)
String
toString()
protected int
writeBytesWireFormat(byte[] dst, int dstIndex)
protected int
writeParameterWordsWireFormat(byte[] dst, int dstIndex)
-
Methods inherited from class jcifs.internal.smb1.AndXServerMessageBlock
decode, encode, getAndx, getBatchLimit, getNext, getNextResponse, readAndXWireFormat, writeAndXWireFormat
-
Methods inherited from class jcifs.internal.smb1.ServerMessageBlock
addFlags2, allowChain, clearReceived, createCancel, equals, error, exception, getByteCount, getCommand, getConfig, getCreditCost, getDigest, getDomain, getErrorCode, getException, getExpiration, getFlags, getFlags2, getFullUNCPath, getGrantedCredits, getLength, getMid, getOverrideTimeout, getPath, getPid, getRawPayload, getResponse, getServer, getSignSeq, getTid, getUid, hashCode, ignoreDisconnect, isAsync, isCancel, isError, isExtendedSecurity, isForceUnicode, isReceived, isResolveInDfs, isResponse, isResponseAsync, isRetainPayload, isUseUnicode, isVerifyFailed, prepare, readHeaderWireFormat, readString, readString, readString, readStringLength, received, remFlags2, reset, retainPayload, setCommand, setDigest, setErrorCode, setExpiration, setExtendedSecurity, setFlags, setFlags2, setFullUNCPath, setMid, setOverrideTimeout, setPath, setPid, setRawPayload, setRequestCredits, setResolveInDfs, setResponse, setSessionId, setSignSeq, setTid, setUid, setUseUnicode, size, split, stringWireLength, verifySignature, writeHeaderWireFormat, writeString, writeString
-
-
-
-
Constructor Detail
-
SmbComNTCreateAndXResponse
public SmbComNTCreateAndXResponse(Configuration config)
- Parameters:
config
-
-
-
Method Detail
-
getFileType
public final int getFileType()
- Returns:
- the fileType
-
isExtended
public final boolean isExtended()
- Returns:
- the isExtended
-
setExtended
public final void setExtended(boolean isExtended)
- Parameters:
isExtended
- the isExtended to set
-
getOplockLevel
public final byte getOplockLevel()
- Returns:
- the oplockLevel
-
getFid
public final int getFid()
- Returns:
- the fid
-
getCreateAction
public final int getCreateAction()
- Returns:
- the createAction
-
getExtFileAttributes
public final int getExtFileAttributes()
- Returns:
- the extFileAttributes
-
getAttributes
public int getAttributes()
- Specified by:
getAttributes
in interfaceSmbBasicFileInfo
- Returns:
- file attributes
- See Also:
SmbBasicFileInfo.getAttributes()
-
getDeviceState
public final int getDeviceState()
- Returns:
- the deviceState
-
getCreationTime
public final long getCreationTime()
- Returns:
- the creationTime
-
getCreateTime
public long getCreateTime()
- Specified by:
getCreateTime
in interfaceSmbBasicFileInfo
- Returns:
- file create time
- See Also:
SmbBasicFileInfo.getCreateTime()
-
getLastAccessTime
public final long getLastAccessTime()
- Specified by:
getLastAccessTime
in interfaceSmbBasicFileInfo
- Returns:
- the lastAccessTime
-
getLastWriteTime
public final long getLastWriteTime()
- Specified by:
getLastWriteTime
in interfaceSmbBasicFileInfo
- Returns:
- the lastWriteTime
-
getAllocationSize
public final long getAllocationSize()
- Returns:
- the allocationSize
-
getEndOfFile
public final long getEndOfFile()
- Returns:
- the endOfFile
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceSmbBasicFileInfo
- Returns:
- file size
- See Also:
SmbBasicFileInfo.getSize()
-
writeParameterWordsWireFormat
protected int writeParameterWordsWireFormat(byte[] dst, int dstIndex)
- Specified by:
writeParameterWordsWireFormat
in classServerMessageBlock
-
writeBytesWireFormat
protected int writeBytesWireFormat(byte[] dst, int dstIndex)
- Specified by:
writeBytesWireFormat
in classServerMessageBlock
-
readParameterWordsWireFormat
protected int readParameterWordsWireFormat(byte[] buffer, int bufferIndex)
- Specified by:
readParameterWordsWireFormat
in classServerMessageBlock
-
readBytesWireFormat
protected int readBytesWireFormat(byte[] buffer, int bufferIndex)
- Specified by:
readBytesWireFormat
in classServerMessageBlock
-
toString
public String toString()
- Overrides:
toString
in classAndXServerMessageBlock
-
-