Searched defs:append (Results 1 - 25 of 32) sorted by relevance

12

/libcore/ojluni/src/main/java/java/io/
H A DFileWriter.java68 * indicating whether or not to append the data written.
71 * @param append boolean if <code>true</code>, then data will be written
77 public FileWriter(String fileName, boolean append) throws IOException { argument
78 super(new FileOutputStream(fileName, append));
99 * @param append if <code>true</code>, then bytes will be written
106 public FileWriter(File file, boolean append) throws IOException { argument
107 super(new FileOutputStream(file, append));
H A DStringWriter.java77 buf.append((char) c);
94 buf.append(cbuf, off, len);
101 buf.append(str);
112 buf.append(str.substring(off, off + len));
118 * <p> An invocation of this method of the form <tt>out.append(csq)</tt>
131 * The character sequence to append. If <tt>csq</tt> is
139 public StringWriter append(CharSequence csq) { method in class:StringWriter
150 * <p> An invocation of this method of the form <tt>out.append(csq, start,
179 public StringWriter append(CharSequence csq, int start, int end) { method in class:StringWriter
188 * <p> An invocation of this method of the form <tt>out.append(
201 public StringWriter append(char c) { method in class:StringWriter
[all...]
H A DWriter.java199 * <p> An invocation of this method of the form <tt>out.append(csq)</tt>
212 * The character sequence to append. If <tt>csq</tt> is
223 public Writer append(CharSequence csq) throws IOException { method in class:Writer
235 * <p> An invocation of this method of the form <tt>out.append(csq, start,
267 public Writer append(CharSequence csq, int start, int end) throws IOException { method in class:Writer
276 * <p> An invocation of this method of the form <tt>out.append(c)</tt>
283 * The 16-bit character to append
292 public Writer append(char c) throws IOException { method in class:Writer
H A DCharArrayWriter.java144 * <p> An invocation of this method of the form <tt>out.append(csq)</tt>
157 * The character sequence to append. If <tt>csq</tt> is
165 public CharArrayWriter append(CharSequence csq) { method in class:CharArrayWriter
174 * <p> An invocation of this method of the form <tt>out.append(csq, start,
203 public CharArrayWriter append(CharSequence csq, int start, int end) { method in class:CharArrayWriter
212 * <p> An invocation of this method of the form <tt>out.append(c)</tt>
219 * The 16-bit character to append
225 public CharArrayWriter append(char c) { method in class:CharArrayWriter
H A DFileOutputStream.java66 * True if the file is opened for append.
68 private final boolean append; field in class:FileOutputStream
128 * @param append if <code>true</code>, then bytes will be written
139 public FileOutputStream(String name, boolean append) argument
142 this(name != null ? new File(name) : null, append);
190 * @param append if <code>true</code>, then bytes will be written
203 public FileOutputStream(File file, boolean append) argument
218 this.append = append;
223 open(name, append);
276 open0(String name, boolean append) argument
285 open(String name, boolean append) argument
[all...]
H A DPrintStream.java1058 * <p> An invocation of this method of the form <tt>out.append(csq)</tt>
1071 * The character sequence to append. If <tt>csq</tt> is
1079 public PrintStream append(CharSequence csq) { method in class:PrintStream
1091 * <p> An invocation of this method of the form <tt>out.append(csq, start,
1120 public PrintStream append(CharSequence csq, int start, int end) { method in class:PrintStream
1129 * <p> An invocation of this method of the form <tt>out.append(c)</tt>
1136 * The 16-bit character to append
1142 public PrintStream append(char c) { method in class:PrintStream
H A DPrintWriter.java979 * <p> An invocation of this method of the form <tt>out.append(csq)</tt>
992 * The character sequence to append. If <tt>csq</tt> is
1000 public PrintWriter append(CharSequence csq) { method in class:PrintWriter
1011 * <p> An invocation of this method of the form <tt>out.append(csq, start,
1040 public PrintWriter append(CharSequence csq, int start, int end) { method in class:PrintWriter
1049 * <p> An invocation of this method of the form <tt>out.append(c)</tt>
1056 * The 16-bit character to append
1062 public PrintWriter append(char c) { method in class:PrintWriter
/libcore/ojluni/src/main/java/java/lang/
H A DAppendable.java59 * the subsequence to append is defined by the buffer's position and limit.
62 * The character sequence to append. If <tt>csq</tt> is
71 Appendable append(CharSequence csq) throws IOException; method in interface:Appendable
77 * <p> An invocation of this method of the form <tt>out.append(csq, start,
82 * out.append(csq.subSequence(start, end)) </pre>
107 Appendable append(CharSequence csq, int start, int end) throws IOException; method in interface:Appendable
113 * The character to append
120 Appendable append(char c) throws IOException; method in interface:Appendable
H A DProcessBuilder.java450 * <li>a redirection to append to a file, created by an invocation of
543 boolean append() { method in class:ProcessBuilder.Redirect
596 boolean append() { return false; }
601 * Returns a redirect to append to the specified file.
616 * @return a redirect to append to the specified file
625 return "redirect to append to file \"" + file + "\"";
627 boolean append() { return true; }
H A DStringBuilder.java40 * {@code append} and {@code insert} methods, which are
44 * {@code append} method always adds these characters at the end
50 * the method call {@code z.append("le")} would cause the string
56 * then {@code sb.append(x)} has the same effect as
114 append(str);
127 append(seq);
131 public StringBuilder append(Object obj) { method in class:StringBuilder
132 return append(String.valueOf(obj));
136 public StringBuilder append(String str) { method in class:StringBuilder
137 super.append(st
160 public StringBuilder append(StringBuffer sb) { method in class:StringBuilder
166 public StringBuilder append(CharSequence s) { method in class:StringBuilder
175 public StringBuilder append(CharSequence s, int start, int end) { method in class:StringBuilder
181 public StringBuilder append(char[] str) { method in class:StringBuilder
190 public StringBuilder append(char[] str, int offset, int len) { method in class:StringBuilder
196 public StringBuilder append(boolean b) { method in class:StringBuilder
202 public StringBuilder append(char c) { method in class:StringBuilder
208 public StringBuilder append(int i) { method in class:StringBuilder
214 public StringBuilder append(long lng) { method in class:StringBuilder
220 public StringBuilder append(float f) { method in class:StringBuilder
226 public StringBuilder append(double d) { method in class:StringBuilder
[all...]
H A DStringBuffer.java44 * {@code append} and {@code insert} methods, which are
48 * {@code append} method always adds these characters at the end
54 * the method call {@code z.append("le")} would cause the string
60 * then {@code sb.append(x)} has the same effect as
68 * {@code append} or {@code insert} operation is passed a source sequence
140 append(str);
158 append(seq);
261 public synchronized StringBuffer append(Object obj) { method in class:StringBuffer
263 super.append(String.valueOf(obj));
268 public synchronized StringBuffer append(Strin method in class:StringBuffer
298 public synchronized StringBuffer append(StringBuffer sb) { method in class:StringBuffer
308 synchronized StringBuffer append(AbstractStringBuilder asb) { method in class:StringBuffer
336 public synchronized StringBuffer append(CharSequence s) { method in class:StringBuffer
347 public synchronized StringBuffer append(CharSequence s, int start, int end) method in class:StringBuffer
355 public synchronized StringBuffer append(char[] str) { method in class:StringBuffer
365 public synchronized StringBuffer append(char[] str, int offset, int len) { method in class:StringBuffer
372 public synchronized StringBuffer append(boolean b) { method in class:StringBuffer
379 public synchronized StringBuffer append(char c) { method in class:StringBuffer
386 public synchronized StringBuffer append(int i) { method in class:StringBuffer
403 public synchronized StringBuffer append(long lng) { method in class:StringBuffer
410 public synchronized StringBuffer append(float f) { method in class:StringBuffer
417 public synchronized StringBuffer append(double d) { method in class:StringBuffer
[all...]
H A DAbstractStringBuilder.java418 * {@link #append(String) appended} to this character sequence.
424 public AbstractStringBuilder append(Object obj) { method in class:AbstractStringBuilder
425 return append(String.valueOf(obj));
437 * execution of the {@code append} method. Then the character at
447 public AbstractStringBuilder append(String str) { method in class:AbstractStringBuilder
459 public AbstractStringBuilder append(StringBuffer sb) { method in class:AbstractStringBuilder
473 AbstractStringBuilder append(AbstractStringBuilder asb) { method in class:AbstractStringBuilder
486 public AbstractStringBuilder append(CharSequence s) { method in class:AbstractStringBuilder
490 return this.append((String)s);
492 return this.append((AbstractStringBuilde
540 public AbstractStringBuilder append(CharSequence s, int start, int end) { method in class:AbstractStringBuilder
572 public AbstractStringBuilder append(char[] str) { method in class:AbstractStringBuilder
603 public AbstractStringBuilder append(char str[], int offset, int len) { method in class:AbstractStringBuilder
624 public AbstractStringBuilder append(boolean b) { method in class:AbstractStringBuilder
659 public AbstractStringBuilder append(char c) { method in class:AbstractStringBuilder
678 public AbstractStringBuilder append(int i) { method in class:AbstractStringBuilder
705 public AbstractStringBuilder append(long l) { method in class:AbstractStringBuilder
732 public AbstractStringBuilder append(float f) { method in class:AbstractStringBuilder
750 public AbstractStringBuilder append(double d) { method in class:AbstractStringBuilder
[all...]
/libcore/ojluni/src/test/java/time/test/java/time/format/
H A DMockIOExceptionAppendable.java69 public Appendable append(CharSequence csq) throws IOException { method in class:MockIOExceptionAppendable
73 public Appendable append(char c) throws IOException { method in class:MockIOExceptionAppendable
77 public Appendable append(CharSequence csq, int start, int end) method in class:MockIOExceptionAppendable
/libcore/ojluni/src/main/native/
H A DFileOutputStream_md.c56 jstring path, jboolean append) {
58 O_WRONLY | O_CREAT | (append ? O_APPEND : O_TRUNC));
55 FileOutputStream_open0(JNIEnv *env, jobject this, jstring path, jboolean append) argument
H A Dio_util.c131 writeSingle(JNIEnv *env, jobject this, jint byte, jboolean append, jfieldID fid) { argument
140 if (append == JNI_TRUE) {
154 jint off, jint len, jboolean append, jfieldID fid)
193 if (append == JNI_TRUE) {
153 writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jboolean append, jfieldID fid) argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DOutputStreamTesterTest.java77 private final boolean append; field in class:OutputStreamTesterTest.FileOutputStreamSinkTester
80 private FileOutputStreamSinkTester(boolean append) { argument
81 this.append = append;
87 return new FileOutputStream(file, append);
H A DWriterTesterTest.java72 private final boolean append; field in class:WriterTesterTest.FileWriterCharSinkTester
75 public FileWriterCharSinkTester(boolean append) { argument
76 this.append = append;
83 return new FileWriter(file, append);
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixChannelFactory.java59 boolean append; field in class:UnixChannelFactory.Flags
75 case APPEND : flags.append = true; break;
121 // default is reading; append => writing
123 if (flags.append) {
131 if (flags.read && flags.append)
133 if (flags.append && flags.truncateExisting)
137 return FileChannelImpl.open(fdObj, path.toString(), flags.read, flags.write, flags.append, null);
168 if (flags.append)
197 if (flags.append)
/libcore/support/src/test/java/libcore/java/io/
H A DNullPrintStream.java62 public PrintStream append(char c) { return this; } method in class:NullPrintStream
63 public PrintStream append(CharSequence csq) { return this; } method in class:NullPrintStream
64 public PrintStream append(CharSequence csq, int start, int end) { return this; } method in class:NullPrintStream
/libcore/json/src/main/java/org/json/
H A DJSONObject.java290 * <p> Note that {@code append(String, Object)} provides better semantics.
300 // TODO: Change {@code append) to {@link #append} when append is
331 public JSONObject append(String name, Object value) throws JSONException { method in class:JSONObject
/libcore/ojluni/src/main/java/java/nio/
H A DCharBuffer.java971 * <p> An invocation of this method of the form <tt>dst.append(csq)</tt>
983 * @param csq The character sequence to append. If <tt>csq</tt> is
991 public CharBuffer append(CharSequence csq) { method in class:CharBuffer
1002 * <p> An invocation of this method of the form <tt>dst.append(csq, start,
1023 public CharBuffer append(CharSequence csq, int start, int end) { method in class:CharBuffer
1032 * <p> An invocation of this method of the form <tt>dst.append(c)</tt>
1038 * @param c The 16-bit char to append
1044 public CharBuffer append(char c) { method in class:CharBuffer
/libcore/ojluni/src/main/java/java/nio/file/attribute/
H A DFileTime.java375 // append year/month/day/hour/minute/second/nano with width and 0 padding
376 private StringBuilder append(StringBuilder sb, int w, int d) { method in class:FileTime
378 sb.append((char)(d/w + '0'));
443 sb.append(year < 0 ? "-" : "");
446 append(sb, 1000, Math.abs(year));
448 sb.append(String.valueOf(year));
450 sb.append('-');
451 append(sb, 10, ldt.getMonthValue());
452 sb.append('-');
453 append(s
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DFileHandler.java95 * <li> &lt;handler-name&gt;.append
96 * specifies whether the FileHandler should append onto
153 private boolean append; field in class:FileHandler
206 private void open(File fname, boolean append) throws IOException { argument
208 if (append) {
211 FileOutputStream fout = new FileOutputStream(fname.toString(), append);
235 append = manager.getBooleanProperty(cname + ".append", false);
298 * with optional append.
303 * set to no limit, the file count is set to one, and the append
316 FileHandler(String pattern, boolean append) argument
392 FileHandler(String pattern, int limit, int count, boolean append) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileDispatcherImpl.java36 FileDispatcherImpl(boolean append) { argument
37 /* append is ignored */
/libcore/ojluni/src/main/java/java/text/
H A DMessageFormat.java443 segments[part].append(ch); // handle doubles
454 segments[part].append(ch);
458 segments[part].append(ch);
470 segments[part].append(ch);
475 segments[part].append(ch);
488 segments[part].append(ch);
494 segments[part].append(ch);
501 segments[part].append(ch);
529 result.append('{').append(argumentNumber
1351 private void append(StringBuffer result, CharacterIterator iterator) { method in class:MessageFormat
[all...]

Completed in 819 milliseconds

12