this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel);  this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + ".filter",        Filter.class,   null);  if (formatter != null) this.formatter = formatter; else this.formatter = (Formatter) LogManager.getInstanceProperty( propertyPrefix + ".formatter",        Formatter.class,   defaultFormatterClass);  try { String enc = LogManager.getLogManager().getProperty(propertyPrefix + ".encoding");   if ((enc != null) && (enc.length() > 0)) new String(new byte[0], enc);  this.encoding = enc; } catch (Exception _) { }  if (out != null) { try { changeWriter(out, getEncoding()); } catch (UnsupportedEncodingException uex) {  throw new RuntimeException(uex.getMessage()); } }
this(null, null);
  StreamHandler(    OutputStream out,    String propertyPrefix,    Level defaultLevel,    Formatter formatter, Class defaultFormatterClass)  {    this.level = LogManager.getLevelProperty(propertyPrefix + ".level",					     defaultLevel);    this.filter = (Filter) LogManager.getInstanceProperty(      propertyPrefix + ".filter",      /* must be instance of */       Filter.class,      /* default: new instance of */  null);    if (formatter != null)      this.formatter = formatter;    else      this.formatter = (Formatter) LogManager.getInstanceProperty(	propertyPrefix + ".formatter",        /* must be instance of */       Formatter.class,        /* default: new instance of */  defaultFormatterClass);    try    {      String enc = LogManager.getLogManager().getProperty(propertyPrefix							  + ".encoding");      /* make sure enc actually is a valid encoding */      if ((enc != null) && (enc.length() > 0))        new String(new byte[0], enc);      this.encoding = enc;    }    catch (Exception _)    {    }    if (out != null)    {      try      {        changeWriter(out, getEncoding());      }      catch (UnsupportedEncodingException uex)      {	/* This should never happen, since the validity of the encoding	 * name has been checked above.	 */	throw new RuntimeException(uex.getMessage());      }    }  }