/** * Returns the content of this {@code Appendable} as a string if possible, * or the localized <cite>"Unavailable content"</cite> string otherwise. * * @return the content of this {@code Appendable}, or a localized message for unavailable content. * * @see IO#content(Appendable) */ @Override public String toString() { return IO.toString(this); } }
/** * Returns the content of this {@code Appendable} as a string if possible, * or the localized <cite>"Unavailable content"</cite> string otherwise. * * @return the content of this {@code Appendable}, or a localized message for unavailable content. * * @see IO#content(Appendable) */ @Override public String toString() { return IO.toString(this); } }
/** * Returns the content of the underlying {@link Appendable} as a string if possible, * or the localized <cite>"Unavailable content"</cite> string otherwise. * * @return the content of the underlying {@code Appendable}, * or a localized message for unavailable content. * * @see IO#content(Appendable) */ @Override @SuppressWarnings("SynchronizeOnNonFinalField") public String toString() { synchronized (lock) { return IO.toString(out); } } }
/** * Returns the content of the underlying {@link Appendable} as a string if possible, * or the localized <cite>"Unavailable content"</cite> string otherwise. * * @return the content of the underlying {@code Appendable}, * or a localized message for unavailable content. * * @see IO#content(Appendable) */ @Override @SuppressWarnings("SynchronizeOnNonFinalField") public String toString() { synchronized (lock) { return IO.toString(out); } } }