@Override public void write(byte[] array) { write(array, 0, array.length); }
/** * Replaces the text in this response * * @param text */ public void setText(CharSequence text) { if (dataAction != null) { throw new IllegalStateException("write(byte[]) has already been called."); } if (charSequenceAction != null) { charSequenceAction.builder.setLength(0); } write(text); }
/** * Replaces the text in this response * * @param text */ public void setText(CharSequence text) { if (dataStream != null) { throw new IllegalStateException("write(byte[]) has already been called."); } if (charSequenceBuilder != null) { charSequenceBuilder.setLength(0); } write(text); }