1 18 19 package jcifs.smb; 20 21 class SmbComCreateDirectory extends ServerMessageBlock { 22 23 SmbComCreateDirectory( String directoryName ) { 24 this.path = directoryName; 25 command = SMB_COM_CREATE_DIRECTORY; 26 } 27 28 int writeParameterWordsWireFormat( byte[] dst, int dstIndex ) { 29 return 0; 30 } 31 int writeBytesWireFormat( byte[] dst, int dstIndex ) { 32 int start = dstIndex; 33 34 dst[dstIndex++] = (byte)0x04; 35 dstIndex += writeString( path, dst, dstIndex ); 36 37 return dstIndex - start; 38 } 39 int readParameterWordsWireFormat( byte[] buffer, int bufferIndex ) { 40 return 0; 41 } 42 int readBytesWireFormat( byte[] buffer, int bufferIndex ) { 43 return 0; 44 } 45 public String toString() { 46 return new String ( "SmbComCreateDirectory[" + 47 super.toString() + 48 ",directoryName=" + path + "]" ); 49 } 50 } 51 | Popular Tags |