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)
| 96 | |
| 97 | |
| 98 | public void write(CharSequence charSequence) throws IOException { |
| 99 | checkNotNull(charSequence); |
| 100 | Closer closer = Closer.create(); |
| 101 | try { |
| 102 | Writer out = closer.register(openStream()); |
| 103 | out.append(charSequence); |
| 104 | out.flush(); // https://code.google.com/p/guava-libraries/issues/detail?id=1330 |
| 105 | } catch (Throwable e) { |
| 106 | throw closer.rethrow(e); |
| 107 | } finally { |
| 108 | closer.close(); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * 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