Wednesday, September 28, 2005

Codigo de Java para convertir Hex To Str

/**
* Converts a string to the char representations of its hex.
*/
Selection[] selection = textArea.getSelection();
String s = textArea.getSelectedText(selection[0]);
StringBuffer sb = new StringBuffer();

byte b;
String unidos = "";

for (int x = 0; x < s.length(); x++) {
unidos = "";
unidos += s.charAt(x);
unidos += s.charAt(++x);
b = Byte.valueOf(unidos, 16).byteValue();
sb.append((char)Integer.parseInt(Byte.toString(b)));
}
textArea.setSelectedText(selection[0],sb.toString());

Monday, September 26, 2005

Checar estos componentes en casa, para evitar error de versiones del Debian que tengo instalado en el trabajo:

http://64.233.187.104/search?q=cache:HHfRjYgu2IoJ:documentation.openoffice.org/
HOW_TO/various_topics/Addons1_1en.pdf+AddonMenu+xcu&hl=es
http://www.oooforum.org/forum/viewtopic.phtml?t=3510&view=next