\r
@param Buffer buffer to contain the section file content with alignment\r
**/\r
- public void toBuffer (DataOutputStream Buffer){\r
+ public void toBuffer (DataOutputStream buffer, DataOutputStream orgBuffer){\r
File sectFile;\r
byte data;\r
long fileLen;\r
int i = 0;\r
while (i < fileLen) {\r
data = In.readByte();\r
- Buffer.writeByte(data);\r
+ buffer.writeByte(data);\r
+ //\r
+ // Add data to org file \r
+ //\r
+ orgBuffer.writeByte(data);\r
i++;\r
}\r
\r
///\r
while ((fileLen & 0x03)!= 0) {\r
fileLen ++;\r
- Buffer.writeByte(0);\r
+ buffer.writeByte(0);\r
+ //\r
+ // Add data to org file \r
+ //\r
+ orgBuffer.writeByte(0);\r
} \r
\r
///\r