/**
* Replace ${NAME} with the property value
- *
- * @deprecated Use the explicit method
- */
- public static String replaceProperties(String value, Object getter) {
- if (getter instanceof Hashtable)
- return replaceProperties(value, (Hashtable) getter, null);
-
- if (getter instanceof PropertySource) {
- PropertySource src[] = new PropertySource[] { (PropertySource) getter };
- return replaceProperties(value, null, src);
- }
- return value;
- }
-
- /**
- * Replace ${NAME} with the property value
*/
- public static String replaceProperties(String value, Hashtable staticProp,
- PropertySource dynamicProp[]) {
+ public static String replaceProperties(String value,
+ Hashtable<Object,Object> staticProp, PropertySource dynamicProp[]) {
if (value.indexOf("$") < 0) {
return value;
}
static final int BUFFER_SIZE=8192;
char result[]=new char[BUFFER_SIZE];
- /** Convert a buffer of bytes into a chars
- * @deprecated
- */
- public void convert( ByteChunk bb, CharChunk cb )
- throws IOException
- {
- // Set the ByteChunk as input to the Intermediate reader
- convert(bb, cb, cb.getBuffer().length - cb.getEnd());
- }
-
-
public void convert( ByteChunk bb, CharChunk cb, int limit)
throws IOException
{
/**
* Creates a new, uninitialized MessageBytes object.
- * @deprecated Use static newInstance() in order to allow
+ * Use static newInstance() in order to allow
* future hooks.
*/
- public MessageBytes() {
+ private MessageBytes() {
}
/** Construct a new MessageBytes instance