Searched defs:input (Results 1 - 25 of 31) sorted by relevance

12

/packages/apps/Email/src/org/apache/commons/io/input/
H A DTeeInputStream.java17 package org.apache.commons.io.input;
27 * bytes from the input stream being skipped or duplicated in the output
30 * The proxied input stream is closed when the {@link #close()} method is
41 * proxied input stream.
56 * @param input input stream to be proxied
59 public TeeInputStream(InputStream input, OutputStream branch) { argument
60 this(input, branch, false);
69 * @param input input strea
74 TeeInputStream( InputStream input, OutputStream branch, boolean closeBranch) argument
[all...]
H A DClassLoaderObjectInputStream.java17 package org.apache.commons.io.input;
H A DCloseShieldInputStream.java17 package org.apache.commons.io.input;
22 * Proxy stream that prevents the underlying input stream from being closed.
24 * This class is typically used in cases where an input stream needs to be
26 * more input would still be available to other components.
34 * Creates a proxy that shields the given input stream from being
37 * @param in underlying input stream
44 * Replaces the underlying input stream with a {@link ClosedInputStream}
45 * sentinel. The original input stream will remain open, but this proxy
H A DClosedInputStream.java17 package org.apache.commons.io.input;
22 * Closed input stream. This stream returns -1 to all attempts to read
26 * that accept input streams and acting as a sentinel value instead of a
27 * <code>null</code> input stream.
H A DAutoCloseInputStream.java17 package org.apache.commons.io.input;
24 * end of input has been reached or when the stream is explicitly closed.
40 * Creates an automatically closing proxy for the given input stream.
42 * @param in underlying input stream
49 * Closes the underlying input stream and replaces the reference to it
53 * of input has been reached.
56 * underlying input stream is closed and discarded only once when this
59 * @throws IOException if the underlying input stream can not be closed
67 * Reads and returns a single byte from the underlying input stream.
83 * Reads and returns bytes from the underlying input strea
[all...]
H A DDemuxInputStream.java17 package org.apache.commons.io.input;
37 * @param input the stream to bind
40 public InputStream bindStream( InputStream input )
43 m_streams.set( input );
55 InputStream input = getStream();
56 if( null != input )
58 input.close();
71 InputStream input = getStream();
72 if( null != input )
74 return input
[all...]
H A DCharSequenceReader.java17 package org.apache.commons.io.input;
H A DCountingInputStream.java17 package org.apache.commons.io.input;
23 * A decorating input stream that counts the number of bytes that have passed
H A DProxyInputStream.java17 package org.apache.commons.io.input;
H A DProxyReader.java17 package org.apache.commons.io.input;
H A DNullInputStream.java17 package org.apache.commons.io.input;
77 * @param size The size of the input stream to emulate.
87 * @param size The size of the input stream to emulate.
112 * @return The size of the input stream to emulate.
135 * Close this input stream - resets the internal state to
H A DNullReader.java17 package org.apache.commons.io.input;
H A DSwappedDataInputStream.java17 package org.apache.commons.io.input;
43 * @param input InputStream to read from
45 public SwappedDataInputStream( InputStream input )
47 super( input );
/packages/apps/Email/src/org/apache/commons/io/
H A DCopyUtils.java132 * @param input the byte array to read from
136 public static void copy(byte[] input, OutputStream output) argument
138 output.write(input);
149 * @param input the byte array to read from
153 public static void copy(byte[] input, Writer output) argument
155 ByteArrayInputStream in = new ByteArrayInputStream(input);
163 * @param input the byte array to read from
171 byte[] input,
175 ByteArrayInputStream in = new ByteArrayInputStream(input);
187 * @param input th
170 copy( byte[] input, Writer output, String encoding) argument
192 copy( InputStream input, OutputStream output) argument
217 copy( Reader input, Writer output) argument
243 copy( InputStream input, Writer output) argument
261 copy( InputStream input, Writer output, String encoding) argument
282 copy( Reader input, OutputStream output) argument
305 copy( String input, OutputStream output) argument
327 copy(String input, Writer output) argument
[all...]
H A DEndianUtils.java38 * @see org.apache.commons.io.input.SwappedDataInputStream
294 * @param input source InputStream
298 public static short readSwappedShort(InputStream input) argument
301 return (short)( ( ( read( input ) & 0xff ) << 0 ) +
302 ( ( read( input ) & 0xff ) << 8 ) );
308 * @param input source InputStream
312 public static int readSwappedUnsignedShort(InputStream input) argument
315 int value1 = read( input );
316 int value2 = read( input );
341 * @param input sourc
345 readSwappedInteger(InputStream input) argument
366 readSwappedUnsignedInteger(InputStream input) argument
410 readSwappedLong(InputStream input) argument
440 readSwappedFloat(InputStream input) argument
466 readSwappedDouble(InputStream input) argument
478 read(InputStream input) argument
[all...]
H A DIOUtils.java43 * This class provides static utility methods for input/output operations.
137 * @param input the Reader to close, may be null or already closed
139 public static void closeQuietly(Reader input) { argument
141 if (input != null) {
142 input.close();
173 * @param input the InputStream to close, may be null or already closed
175 public static void closeQuietly(InputStream input) { argument
177 if (input != null) {
178 input.close();
208 * This method buffers the input internall
216 toByteArray(InputStream input) argument
234 toByteArray(Reader input) argument
257 toByteArray(Reader input, String encoding) argument
276 toByteArray(String input) argument
337 toCharArray(Reader input) argument
357 toString(InputStream input) argument
379 toString(InputStream input, String encoding) argument
397 toString(Reader input) argument
413 toString(byte[] input) argument
431 toString(byte[] input, String encoding) argument
455 readLines(InputStream input) argument
477 readLines(InputStream input, String encoding) argument
499 readLines(Reader input) argument
573 lineIterator(InputStream input, String encoding) argument
593 toInputStream(String input) argument
611 toInputStream(String input, String encoding) argument
998 copy(InputStream input, OutputStream output) argument
1020 copyLarge(InputStream input, OutputStream output) argument
1047 copy(InputStream input, Writer output) argument
1072 copy(InputStream input, Writer output, String encoding) argument
1103 copy(Reader input, Writer output) argument
1124 copyLarge(Reader input, Writer output) argument
1154 copy(Reader input, OutputStream output) argument
1186 copy(Reader input, OutputStream output, String encoding) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DWnnSentence.java35 * @param input The string of reading
38 public WnnSentence(String input, ArrayList<WnnClause> clauses) { argument
53 this.stroke = input;
68 this.stroke = input;
79 * @param input The string of reading
82 public WnnSentence(String input, WnnClause clause) { argument
85 this.stroke = input;
/packages/apps/Email/tests/src/com/android/exchange/utility/
H A DSimpleIcsWriterTests.java60 String input = stringOfLength(i) + last;
61 checkWriteLine(input);
77 private void checkWriteLine(String input) { argument
79 ics.writeLine(input);
89 assertTrue("input=" + input, numBytes <= 75);
95 assertTrue("input=" + input, numBytes <= 75);
98 // If it becomes the same as input, we're doing the right thing.
101 assertEquals("input
[all...]
/packages/apps/Phone/src/com/android/phone/
H A DSpecialCharSequenceMgr.java50 * Check for special strings of digits from an input
52 * @param context input Context for the events we handle.
53 * @param input the dial string to be examined.
55 static boolean handleChars(Context context, String input) { argument
56 return handleChars(context, input, null);
72 * @param context input Context for the events we handle.
73 * @param input the dial string to be examined.
78 * @return true if the input was a special string which has been
82 String input,
86 String dialString = PhoneNumberUtils.stripSeparators(input);
81 handleChars(Context context, String input, Activity pukInputActivity) argument
106 handleCharsForLockedDevice(Context context, String input, Activity pukInputActivity) argument
134 handleSecretCode(Context context, String input) argument
147 handleAdnEntry(Context context, String input) argument
176 handlePinEntry(Context context, String input, Activity pukInputActivity) argument
199 handleIMEIDisplay(Context context, String input) argument
[all...]
H A DEmergencyDialer.java121 public void onTextChanged(CharSequence input, int start, int before, int changeCount) { argument
126 public void afterTextChanged(Editable input) { argument
136 if (SpecialCharSequenceMgr.handleCharsForLockedDevice(this, input.toString(), this)) {
/packages/apps/Contacts/src/com/android/contacts/
H A DSpecialCharSequenceMgr.java57 static boolean handleChars(Context context, String input, EditText textField) { argument
58 return handleChars(context, input, false, textField);
61 static boolean handleChars(Context context, String input) { argument
62 return handleChars(context, input, false, null);
65 static boolean handleChars(Context context, String input, boolean useSystemWindow, argument
69 String dialString = PhoneNumberUtils.stripSeparators(input);
87 * @param input the text to check for a secret code in
90 static boolean handleSecretCode(Context context, String input) { argument
92 int len = input.length();
93 if (len > 8 && input
110 handleAdnEntry(Context context, String input, EditText textField) argument
171 handlePinEntry(Context context, String input) argument
184 handleIMEIDisplay(Context context, String input, boolean useSystemWindow) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DKanaConverter.java512 * @param inputHiragana The input string (Hiragana)
513 * @param inputRomaji The input string (Romaji)
580 * @param inputHiragana The input string (Hiragana)
581 * @param inputRomaji The input string (Romaji)
607 * @param input The input string
612 private boolean createCandidateString(String input, HashMap<String,String> map, StringBuffer outBuf) { argument
616 for (int index = 0; index < input.length(); index++) {
617 String convChar = map.get(input.substring(index, index + 1));
629 * @param moji The input strin
[all...]
/packages/apps/Browser/tests/src/com/android/browser/
H A DPopularUrlsTest.java303 FileReader input = null;
309 input = new FileReader(mFile);
311 reader = new BufferedReader(input);
331 if (input != null) {
332 input.close();
401 * @param input the reader from which to get the URLs.
405 * @throws IOException unable to read from input or write to writer.
408 void loopUrls(BufferedReader input, OutputStreamWriter writer, argument
417 while (null != (page = input.readLine())) {
/packages/apps/Calculator/src/com/android/calculator2/
H A DLogic.java164 String evaluate(String input) throws SyntaxException { argument
165 if (input.trim().equals("")) {
170 int size = input.length();
171 while (size > 0 && isOperator(input.charAt(size - 1))) {
172 input = input.substring(0, size - 1);
176 String result = Util.doubleToString(mSymbols.eval(input), mLineLength, ROUND_DIGITS);
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DLevenshteinFormatterTest.java43 private void verifyTokenizeResult(String input, String... output) { argument
44 Token[] tokens = mFormatter.tokenize(input);

Completed in 242 milliseconds

12