Writes the given character sequence to this sink. @throws IOException if an I/O error in the process of writing to this sink
(CharSequence charSequence)
| 89 | * @throws IOException if an I/O error in the process of writing to this sink |
| 90 | */ |
| 91 | public void write(CharSequence charSequence) throws IOException { |
| 92 | checkNotNull(charSequence); |
| 93 | |
| 94 | Closer closer = Closer.create(); |
| 95 | try { |
| 96 | Writer out = closer.register(openStream()); |
| 97 | out.append(charSequence); |
| 98 | out.flush(); // https://code.google.com/p/guava-libraries/issues/detail?id=1330 |
| 99 | } catch (Throwable e) { |
| 100 | throw closer.rethrow(e); |
| 101 | } finally { |
| 102 | closer.close(); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * Writes the given lines of text to this sink with each line (including the last) terminated with |
nothing calls this directly
no test coverage detected