/dalvik/dx/src/com/android/dx/util/ |
Writers.java | 20 import java.io.Writer; 23 * Utilities for dealing with {@code Writer}s. 34 * Makes a {@code PrintWriter} for the given {@code Writer}, 35 * returning the given writer if it already happens to be the right 38 * @param writer {@code non-null;} writer to (possibly) wrap 41 public static PrintWriter printWriterFor(Writer writer) { 42 if (writer instanceof PrintWriter) { 43 return (PrintWriter) writer; [all...] |
TwoColumnOutput.java | 23 import java.io.Writer; 31 /** {@code non-null;} underlying writer for final output */ 32 private final Writer out; 43 /** {@code non-null;} left column writer */ 46 /** {@code non-null;} right column writer */ 83 * @param out {@code non-null;} writer to send final output to 88 public TwoColumnOutput(Writer out, int leftWidth, int rightWidth, 132 * Gets the writer to use to write to the left column. 134 * @return {@code non-null;} the left column writer 136 public Writer getLeft() [all...] |
IndentingWriter.java | 21 import java.io.Writer; 24 * Writer that wraps another writer and passes width-limited and 51 * @param out {@code non-null;} writer to send final output to 56 public IndentingWriter(Writer out, int width, String prefix) { 81 * @param out {@code non-null;} writer to send final output to 85 public IndentingWriter(Writer out, int width) {
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
NullWriter.java | 19 import java.io.Writer;
22 * This {@link Writer} writes all data to the famous <b>/dev/null</b>.
24 * This <code>Writer</code> has no destination (file/socket etc.) and all
29 public class NullWriter extends Writer {
86 /** @see java.io.Writer#flush() */
91 /** @see java.io.Writer#close() */
|
ProxyWriter.java | 21 import java.io.Writer;
39 * @param proxy the Writer to delegate to
41 public ProxyWriter(Writer proxy) {
|
/libcore/luni/src/main/java/javax/xml/transform/stream/ |
StreamResult.java | 24 import java.io.Writer; 68 * @param writer A valid Writer reference. 70 public StreamResult(Writer writer) { 71 setWriter(writer); 115 * Set the writer that is to receive the result. Normally, 116 * a stream should be used rather than a writer, so that 119 * there are times when it is useful to write to a writer, 122 * @param writer A valid Writer reference 193 private Writer writer; field in class:StreamResult [all...] |
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/ |
Output.java | 20 import java.io.Writer; 23 * An {@link Output} objects is an helper to write to a character stream {@link Writer}. 30 private final Writer mWriter; 33 * Creates a new {@link Output} object that wraps the given {@link Writer}. 35 * The caller is responsible of opening and closing the {@link Writer}. 37 * @param writer The writer to write to. Could be a file, a string, etc. 39 public Output(Writer writer) { 40 mWriter = writer; [all...] |
/libcore/luni/src/main/java/org/apache/xml/serializer/ |
Serializer.java | 24 import java.io.Writer; 65 * java.io.Writer owriter; 70 * owriter = ...; // create a writer to serialize the document to 111 * @return reference to the result stream, or null if only a writer was 117 * Specifies a writer to which the document should be serialized. 122 * identical to the output format used with the writer. 127 * @param writer The output writer stream 129 public void setWriter(Writer writer); [all...] |
WriterChain.java | 26 * It is unfortunate that java.io.Writer is a class rather than an interface. 27 * The serializer has a number of classes that extend java.io.Writer 28 * and which send their ouput to a yet another wrapped Writer or OutputStream. 31 * the important methods defined on the java.io.Writer class, namely these: 42 * the base class rather than to the wrapped Writer or OutputStream. 44 * The purpose of this class is to have a uniform way of chaining the output of one writer to 45 * the next writer in the chain. In addition there are methods to obtain the Writer or 53 /** This method forces us to over-ride the method defined in java.io.Writer */ 55 /** This method forces us to over-ride the method defined in java.io.Writer */ [all...] |
WriterToASCI.java | 25 import java.io.Writer; 39 class WriterToASCI extends Writer implements WriterChain 46 * Create an unbuffered ASCII writer. 140 * @return reference to the result stream, or null of only a writer was 149 * Get the writer that this writer directly chains to. 151 public Writer getWriter()
|
/libcore/luni/src/main/java/org/apache/xml/serializer/dom3/ |
DOMOutputImpl.java | 26 import java.io.Writer;
63 private Writer fCharStream = null;
81 public Writer getCharacterStream(){
93 public void setCharacterStream(Writer characterStream){
|
/libcore/luni/src/main/java/org/w3c/dom/ls/ |
LSOutput.java | 54 public java.io.Writer getCharacterStream(); 59 public void setCharacterStream(java.io.Writer characterStream);
|
/libcore/luni/src/main/java/java/io/ |
Writer.java | 21 * The base class for all writers. A writer is a means of writing data to a 37 public abstract class Writer implements Appendable, Closeable, Flushable { 42 * The object used to synchronize access to the writer. 47 * Constructs a new {@code Writer} with {@code this} as the object used to 50 protected Writer() { 56 * Constructs a new {@code Writer} with {@code lock} used to synchronize 64 protected Writer(Object lock) { 72 * Closes this writer. Implementations of this method should free any 73 * resources associated with the writer. 76 * if an error occurs while closing this writer [all...] |
FilterWriter.java | 21 * Wraps an existing {@link Writer} and performs some transformation on the 24 * decompression of the underlying writer. Writers that wrap another writer and 30 public abstract class FilterWriter extends Writer { 33 * The Writer being filtered. 35 protected Writer out; 38 * Constructs a new FilterWriter on the Writer {@code out}. All writes are 39 * now filtered through this writer. 42 * the target Writer to filter writes on. 44 protected FilterWriter(Writer out) [all...] |
/external/guava/src/com/google/common/io/ |
AppendableWriter.java | 21 import java.io.Writer; 25 * Writer that places all output on an {@link Appendable} target. If the target 33 class AppendableWriter extends Writer { 38 * Creates a new writer that appends everything it writes to {@code target}. 47 * Abstract methods from Writer 93 @Override public Writer append(char c) throws IOException { 99 @Override public Writer append(CharSequence charSeq) throws IOException { 105 @Override public Writer append(CharSequence charSeq, int start, int end) 114 throw new IOException("Cannot write to a closed writer.");
|
/frameworks/base/opengl/java/android/opengl/ |
GLDebugHelper.java | 19 import java.io.Writer; 79 public static GL wrap(GL gl, int configFlags, Writer log) { 100 public static EGL wrap(EGL egl, int configFlags, Writer log) {
|
/packages/apps/Email/src/org/apache/commons/io/ |
CopyUtils.java | 27 import java.io.Writer;
33 * (<code>OutputStream</code>, <code>Writer</code>, <code>String</code> and
85 * 2 copy Reader Writer (primitive)
87 * 3 copy InputStream Writer 2
92 * 6 copy String Writer (trivial)
94 * 7 copy byte[] Writer 3
142 // byte[] -> Writer
147 * <code>Writer</code>.
150 * @param output the <code>Writer</code> to write to
153 public static void copy(byte[] input, Writer output) [all...] |
/libcore/luni/src/main/java/java/sql/ |
Clob.java | 23 import java.io.Writer; 129 * @return a Writer which can be used to write unicode characters to this 134 public Writer setCharacterStream(long pos) throws SQLException;
|
SQLXML.java | 23 import java.io.Writer; 58 * Returns a writer that can be used to write character data to this SQL {@code XML} object. 61 Writer setCharacterStream() throws SQLException;
|
/external/emma/core/java12/com/vladium/emma/report/html/doc/ |
HTMLWriter.java | 12 import java.io.Writer; 30 public HTMLWriter (final Writer out) 116 private Writer m_out;
|
/external/proguard/src/proguard/io/ |
DataEntryRewriter.java | 58 Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream)); local 60 copyData(reader, writer); 62 writer.flush(); 69 * writer. 72 Writer writer) 97 writeUpdatedWord(writer, word.toString()); 101 writer.write(c); 106 writeUpdatedWord(writer, word.toString()) [all...] |
/libcore/luni/src/test/java/tests/api/java/io/ |
WriterTest.java | 19 import java.io.Writer; 27 @TestTargetClass(Writer.class) 31 * @tests java.io.Writer#append(char) 41 MockWriter writer = new MockWriter(20); local 42 writer.append(testChar); 43 assertEquals(String.valueOf(testChar), String.valueOf(writer 45 writer.close(); 47 Writer tobj = new Support_ASimpleWriter(2); 60 * @tests java.io.Writer#append(CharSequence) 70 MockWriter writer = new MockWriter(20) local 97 MockWriter writer = new MockWriter(20); local [all...] |
/packages/apps/Mms/src/com/android/mms/dom/smil/parser/ |
SmilXmlSerializer.java | 25 import java.io.Writer; 36 Writer writer = new BufferedWriter(new OutputStreamWriter(out, "UTF-8"), 2048); local 38 writeElement(writer, smilDoc.getDocumentElement()); 39 writer.flush(); 47 private static void writeElement(Writer writer, Element element) 49 writer.write('<'); 50 writer.write(element.getTagName()); 56 writer.write(" " + attribute.getName()) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
WriterTest.java | 19 import java.io.Writer; 26 * @tests java.io.Writer#append(char) 30 MockWriter writer = new MockWriter(20); local 31 writer.append(testChar); 32 assertEquals(String.valueOf(testChar), String.valueOf(writer 34 writer.close(); 38 * @tests java.io.Writer#append(CharSequence) 42 MockWriter writer = new MockWriter(20); local 43 writer.append(testString); 44 assertEquals(testString, String.valueOf(writer.getContents())) 54 MockWriter writer = new MockWriter(20); local [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_ASimpleWriter.java | 4 import java.io.Writer; 12 public class Support_ASimpleWriter extends Writer {
|