Ejemplo n.º 1
0
 @Override
 public String toString() {
   String channelString = getChannel().toString();
   StringBuilder buf = new StringBuilder(channelString.length() + 32);
   buf.append(channelString);
   buf.append(" WRITTEN_AMOUNT: ");
   buf.append(getWrittenAmount());
   return buf.toString();
 }
 @Override
 public String toString() {
   String channelString = getChannel().toString();
   StringBuilder buf = new StringBuilder(channelString.length() + 32);
   buf.append(channelString);
   buf.append(getChildChannel().isOpen() ? " CHILD_OPEN: " : " CHILD_CLOSED: ");
   buf.append(getChildChannel().getId());
   return buf.toString();
 }