package org.krakenapps.pcap.decoder.smb.request; import org.krakenapps.pcap.decoder.smb.structure.SmbData; //0xC1 public class WritePrintFileRequest implements SmbData{ boolean malformed = false; //param byte wordCount; short fid; //data short byteCount; byte bufferFormat; short dataLength; byte []Data; // new DataLength; public byte getWordCount() { return wordCount; } public void setWordCount(byte wordCount) { this.wordCount = wordCount; } public short getFid() { return fid; } public void setFid(short fid) { this.fid = fid; } public short getByteCount() { return byteCount; } public void setByteCount(short byteCount) { this.byteCount = byteCount; } public byte getBufferFormat() { return bufferFormat; } public void setBufferFormat(byte bufferFormat) { this.bufferFormat = bufferFormat; } public short getDataLength() { return dataLength; } public void setDataLength(short dataLength) { this.dataLength = dataLength; } public byte[] getData() { return Data; } public void setData(byte[] data) { Data = data; } @Override public boolean isMalformed() { // TODO Auto-generated method stub return malformed; } @Override public void setMalformed(boolean malformed) { this.malformed = malformed; } @Override public String toString(){ return String.format("First Level : Write Print File Request\n" + "isMalformed = %s\n" + "wordCount = 0x%s"+ "fid = 0x%s\n" + "byteCount = 0x%s\n" + "bufferFormat = 0x%s , dataLength = 0x%s\n", this.malformed, Integer.toHexString(this.wordCount), Integer.toHexString(this.fid), Integer.toHexString(this.byteCount), Integer.toHexString(this.dataLength)); } }