import org.apache.poi.hssf.usermodel.HSSFPatriarch;\r
import org.apache.poi.hssf.usermodel.HSSFWorkbook;\r
import org.apache.poi.poifs.filesystem.NPOIFSFileSystem;\r
+import org.apache.poi.util.StringUtil;\r
\r
/**\r
* Utility for representing drawings contained in a binary Excel file as a XML tree\r
- *\r
- * @author Evgeniy Berlog\r
- * date: 10.04.12\r
*/\r
public class BiffDrawingToXml {\r
-\r
private static final String SHEET_NAME_PARAM = "-sheet-name";\r
private static final String SHEET_INDEXES_PARAM = "-sheet-indexes";\r
private static final String EXCLUDE_WORKBOOK_RECORDS = "-exclude-workbook";\r
}\r
}\r
builder.append("</workbook>\n");\r
- fos.write(builder.toString().getBytes());\r
+ fos.write(builder.toString().getBytes(StringUtil.UTF8));\r
fos.close();\r
}\r
\r
* The <code>HyperlinkRecord</code> (0x01B8) wraps an HLINK-record
* from the Excel-97 format.
* Supports only external links for now (eg http://)
- *
- * @author Mark Hissink Muller <a href="mailto:mark@hissinkmuller.nl >mark&064;hissinkmuller.nl</a>
- * @author Yegor Kozlov (yegor at apache dot org)
*/
public final class HyperlinkRecord extends StandardRecord {
public final static short sid = 0x01B8;
byte[] path_bytes = new byte[len];
in.readFully(path_bytes);
- _address = new String(path_bytes);
+ _address = new String(path_bytes, StringUtil.UTF8);
}
}
* <p/>
* REFERENCE: PG 424 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
* <p/>
- *
- * @author Andrew C. Oliver (acoliver at apache dot org)
*/
public final class WriteAccessRecord extends StandardRecord {
public final static short sid = 0x005C;
LittleEndian.putUShort(data, 0, nChars);
LittleEndian.putByte(data, 2, is16BitFlag);
in.readFully(data, 3, data.length-3);
- String rawValue = new String(data);
+ String rawValue = new String(data, StringUtil.UTF8);
setUsername(rawValue.trim());
return;
}