/external/libxml2/include/libxml/ |
xmlwriter.h | 46 XMLPUBFUN void XMLCALL xmlFreeTextWriter(xmlTextWriterPtr writer); 57 xmlTextWriterStartDocument(xmlTextWriterPtr writer, 62 writer); 68 writer); 69 XMLPUBFUN int XMLCALL xmlTextWriterEndComment(xmlTextWriterPtr writer); 71 xmlTextWriterWriteFormatComment(xmlTextWriterPtr writer, 75 xmlTextWriterWriteVFormatComment(xmlTextWriterPtr writer, 80 writer, 88 xmlTextWriterStartElement(xmlTextWriterPtr writer, 91 writer, [all...] |
/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...] |
/external/libxml2/ |
xmlwriter.c | 3 * xmlwriter.c: XML text writer implementation 100 static int xmlTextWriterOutputNSDecl(xmlTextWriterPtr writer); 112 static int xmlTextWriterWriteIndent(xmlTextWriterPtr writer); 114 xmlTextWriterHandleStateDependencies(xmlTextWriterPtr writer, 119 * @ctxt: a writer context 123 * Handle a writer error 141 * @ctxt: a writer context 146 * Handle a writer error 167 * NOTE: the @out parameter will be deallocated when the writer is closed 305 * NOTE: the @ctxt context will be freed with the resulting writer [all...] |
/libcore/luni/src/main/java/java/io/ |
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...] |
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...] |
StringWriter.java | 21 * A specialized {@link Writer} that writes characters to a {@code StringBuffer} 28 public class StringWriter extends Writer { 36 * writer. 48 * writer. 62 * Calling this method has no effect. In contrast to most {@code Writer} subclasses, 67 * if an error occurs while closing this writer. 83 * Gets a reference to this writer's internal {@link StringBuffer}. Any 84 * changes made to the returned buffer are reflected in this writer. 86 * @return a reference to this writer's internal {@code StringBuffer}. 93 * Gets a copy of the contents of this writer as a string [all...] |
BufferedWriter.java | 25 * Wraps an existing {@link Writer} and <em>buffers</em> the output. Expensive 40 public class BufferedWriter extends Writer { 42 private Writer out; 55 * @param out the {@code Writer} the buffer writes to. 57 public BufferedWriter(Writer out) { 69 public BufferedWriter(Writer out, int size) { 79 * Closes this writer. The contents of the buffer are flushed, the target 80 * writer is closed, and the buffer is released. Only the first invocation 84 * if an error occurs while closing this writer. 117 * Flushes this writer. The contents of the buffer are committed to th [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/main/java/org/apache/xml/serializer/ |
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...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
OutputStreamWriterTest.java | 43 private OutputStreamWriter writer; field in class:OutputStreamWriterTest 65 writer = new OutputStreamWriter(out, "utf-8"); 77 writer.close(); 91 writer.flush(); 92 writer.close(); 94 writer.flush(); 102 writer.write(source); 103 writer.flush(); 116 writer.write((char[]) null, -1, -1); 124 writer.write((char[]) null, 1, -1) 437 FileWriter writer = new FileWriter(f); local 584 OutputStreamWriter writer = new OutputStreamWriter(bout, local [all...] |
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/xml/src/main/java/org/kxml2/io/ |
KXmlSerializer.java | 37 // (Guarantee that the writer is always buffered.) 38 private BufferedWriter writer; field in class:KXmlSerializer 69 writer.write(' '); 70 writer.write("xmlns"); 72 writer.write(':'); 73 writer.write(nspStack[i * 2]); 77 writer.write("=\""); 79 writer.write('"'); 91 writer.write(close ? " />" : ">"); 104 writer.write(c) [all...] |
/external/proguard/src/proguard/ |
ConfigurationWriter.java | 46 private final PrintWriter writer; field in class:ConfigurationWriter 73 public ConfigurationWriter(PrintWriter writer) throws IOException 75 this.writer = writer; 84 writer.close(); 99 writer.println(); 105 writer.println(); 152 writer.println(); 163 if (writer.checkError()) 183 writer.print(optionName) 634 ConfigurationWriter writer = new ConfigurationWriter(new File(args[0])); local [all...] |
DataEntryWriterFactory.java | 48 DataEntryWriter writer = null; local 54 writer = createClassPathEntryWriter(entry, writer); 57 return writer; 93 DataEntryWriter writer = new DirectoryWriter(classPathEntry.getFile(), local 100 writer = wrapInJarWriter(writer, isZip, zipFilter, ".zip", isJar || isWar || isEar); 101 writer = wrapInJarWriter(writer, isEar, earFilter, ".ear", isJar || isWar); 102 writer = wrapInJarWriter(writer, isWar, warFilter, ".war", isJar) [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...] |
/packages/apps/Email/src/com/android/email/mail/transport/ |
Rfc822Output.java | 42 import java.io.Writer; 126 Writer writer = new OutputStreamWriter(stream); local 132 writeHeader(writer, "Date", date); 134 writeEncodedHeader(writer, "Subject", message.mSubject); 136 writeHeader(writer, "Message-ID", message.mMessageId); 138 writeAddressHeader(writer, "From", message.mFrom); 139 writeAddressHeader(writer, "To", message.mTo); 140 writeAddressHeader(writer, "Cc", message.mCc); 144 writeAddressHeader(writer, "Bcc", message.mBcc) [all...] |
/external/dbus/dbus/ |
dbus-marshal-recursive.c | 1150 DBusTypeWriter writer; local 1259 DBusTypeWriter writer; local [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...] |
OutputStreamWriterTest.java | 91 OutputStreamWriter writer = null; local 94 writer = new OutputStreamWriter(null); 101 writer = new OutputStreamWriter(new Support_OutputStream()); 109 Charset.forName(writer.getEncoding())); 111 if (writer != null) writer.close(); 178 OutputStreamWriter writer; local 183 writer = new OutputStreamWriter(null, cs); 190 writer = new OutputStreamWriter(out, (Charset) null); 196 writer = new OutputStreamWriter(out, cs) 214 OutputStreamWriter writer; local 278 OutputStreamWriter writer = new OutputStreamWriter(bout, local 368 OutputStreamWriter writer = null; local 431 OutputStreamWriter writer = null; local 589 OutputStreamWriter writer; local 613 OutputStreamWriter writer; local 715 OutputStreamWriter writer; local 776 OutputStreamWriter writer; local [all...] |
/build/libs/host/ |
list.java | 10 OutputStreamWriter writer = null; local 12 writer = new OutputStreamWriter(stream, "utf-8"); 19 writer.write(n); 20 writer.close();
|
/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...] |
/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.");
|
/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...] |
/frameworks/base/tests/CoreTests/android/core/ |
PipedStreamTest.java | 75 TestThread reader, writer; local 101 writer = new TestThread() { 114 writer.start(); 120 writer.join(1000); 128 if (writer.exception != null) { 129 throw new Exception(writer.exception); 143 TestThread reader, writer; local 181 writer = new TestThread() { 200 writer.start(); 206 writer.join(1000) 230 TestThread reader, writer; local [all...] |
/cts/libs/json/src/com/android/json/stream/ |
JsonWriter.java | 21 import java.io.Writer; 34 * writer as you walk the structure's contents, nesting arrays and objects as 72 * JsonWriter writer = new JsonWriter(new OutputStreamWriter(out, "UTF-8")); 73 * writer.setIndent(" "); 74 * writeMessagesArray(writer, messages); 75 * writer.close(); 78 * public void writeMessagesArray(JsonWriter writer, List<Message> messages) throws IOException { 79 * writer.beginArray(); 81 * writeMessage(writer, message); 83 * writer.endArray() [all...] |