1 19 20 package net.sourceforge.jcetaglib.tools; 21 22 31 32 public class safeText { 33 private byte[] safetext; 34 35 41 public void setText(byte[] safetext) 42 throws Exception { 43 this.safetext = safetext; 44 } 45 46 52 public StringBuffer getText() 53 throws Exception { 54 return new StringBuffer (new String (safetext)); 55 } 56 57 62 public void clearText() 63 throws Exception { 64 for (int i = 0; i < safetext.length; i++) { 65 safetext[i] = 0; 66 } 67 } 68 } 69 | Popular Tags |