1 16 19 package org.apache.xml.utils; 20 21 25 public class XMLStringFactoryDefault extends XMLStringFactory 26 { 27 private static final XMLStringDefault EMPTY_STR = new XMLStringDefault(""); 29 30 38 public XMLString newstr(String string) 39 { 40 return new XMLStringDefault(string); 41 } 42 43 53 public XMLString newstr(FastStringBuffer fsb, int start, int length) 54 { 55 return new XMLStringDefault(fsb.getString(start, length)); 56 } 57 58 68 public XMLString newstr(char[] string, int start, int length) 69 { 70 return new XMLStringDefault(new String (string, start, length)); 71 } 72 73 78 public XMLString emptystr() 79 { 80 return EMPTY_STR; 81 } 82 } 83 | Popular Tags |