\r
@param buffer The buffer to put the result with alignment\r
**/\r
- public void toBuffer (DataOutputStream buffer){\r
+ public void toBuffer (DataOutputStream buffer, DataOutputStream orgBuffer){\r
File OutputFile;\r
byte data;\r
\r
while (i < fileLen) {\r
data = In.readByte();\r
buffer.writeByte(data);\r
+ //\r
+ // Add data to org file\r
+ //\r
+ orgBuffer.writeByte(data);\r
i ++;\r
}\r
\r
while ((fileLen & 0x03) != 0) {\r
fileLen++;\r
buffer.writeByte(0);\r
+ orgBuffer.writeByte(0);\r
}\r
In.close();\r
\r