/libcore/luni/src/main/java/java/nio/charset/ |
CharsetDecoder.java | 22 import java.nio.CharBuffer; 30 * {@link java.nio.CharBuffer CharBuffer}. A decoder instance should be used in 35 * <li>invoking the {@link #decode(ByteBuffer, CharBuffer, boolean) decode} 39 * <li>invoking the {@link #decode(ByteBuffer, CharBuffer, boolean) decode} 42 * <li>invoking the {@link #flush(CharBuffer) flush} method to flush the 46 * The {@link #decode(ByteBuffer, CharBuffer, boolean) decode} method will 74 * {@link #decodeLoop(ByteBuffer, CharBuffer) decodeLoop} method for the basic 76 * {@link #implFlush(CharBuffer) implFlush} method and the 158 * @return a new <code>CharBuffer</code> containing the the character [all...] |
CharsetEncoder.java | 22 import java.nio.CharBuffer; 28 * <p>The input character sequence is a {@link java.nio.CharBuffer CharBuffer} and the 31 * <p>Use {@link #encode(CharBuffer)} to encode an entire {@code CharBuffer} to a 32 * new {@code ByteBuffer}, or {@link #encode(CharBuffer, ByteBuffer, boolean)} for more 36 * <li>Invoke {@link #encode(CharBuffer, ByteBuffer, boolean) encode} with the {@code endOfInput} 39 * <p>The {@link #encode(CharBuffer, ByteBuffer, boolean) encode} method will 46 * <li>Invoke {@link #encode(CharBuffer, ByteBuffer, boolean) encode} for the last time with 69 * {@link #encodeLoop(CharBuffer, ByteBuffer) encodeLoop} method for basi [all...] |
CharsetDecoderICU.java | 18 import java.nio.CharBuffer; 102 @Override protected final CoderResult implFlush(CharBuffer out) { 129 @Override protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 167 private int getArray(CharBuffer out) { 203 private void setPosition(CharBuffer out) {
|
Charset.java | 22 import java.nio.CharBuffer; 440 public final ByteBuffer encode(CharBuffer buffer) { 462 return encode(CharBuffer.wrap(s)); 466 * Returns a new {@code CharBuffer} containing the characters decoded from {@code buffer}. 476 public final CharBuffer decode(ByteBuffer buffer) {
|
CharsetEncoderICU.java | 18 import java.nio.CharBuffer; 157 @Override protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { 212 private int getArray(CharBuffer in) { 242 private void setPosition(CharBuffer in) {
|
/external/guava/guava/src/com/google/common/io/ |
LineReader.java | 24 import java.nio.CharBuffer; 41 private final CharBuffer cbuf = CharBuffer.wrap(buf); 74 // The default implementation of Reader#read(CharBuffer) allocates a
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
ReadOnlyCharBufferTest.java | 18 import java.nio.CharBuffer; 53 CharBuffer duplicate = buf.duplicate(); 128 CharBuffer other = CharBuffer.allocate(1); 136 buf.put((CharBuffer) null);
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
OldCharset_SingleByteAbstractTest.java | 19 import java.nio.CharBuffer; 50 CharBuffer outputCB; 66 CharBuffer outputCB; 91 // CharBuffer outputCB; 105 CharBuffer inputCB = CharBuffer.wrap(allChars);
|
CharsetEncoderTest.java | 20 import java.nio.CharBuffer; 36 String output = ascii.decode(e.encode(CharBuffer.wrap(input))).toString(); 70 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\ud842', '\udf9f' }), bb, false); 84 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\udf9f' }), bb, false); 121 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\ud842' }), bb, false); 124 cr = e.encode(CharBuffer.wrap(new char[] { '\udf9f' }), bb, false); 133 cr = e.encode(CharBuffer.wrap(new char[] { }), bb, true); 145 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { 'x' }), bb, false); 157 cr = e.encode(CharBuffer.wrap(new char[] { 'x' }), bb, true);
|
Charset_TestGenerator.java | 19 import java.nio.CharBuffer; 217 static void genEncoded (Charset charset, CharBuffer cb) { 240 // CharBuffer outputCB; 256 genEncoded(Charset.forName("MacRoman"), CharBuffer.wrap(chars)); 257 // genEncoded(Charset.forName(charsetNames[37]), CharBuffer.wrap(chars));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
CharsetEncoderTest.java | 19 import java.nio.CharBuffer; 273 encoder.encode(CharBuffer.wrap("aaa")); 275 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), false); 277 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), true); 282 CharBuffer in = CharBuffer.wrap("aaa"); 328 CharBuffer in = CharBuffer.wrap("aaa"); 349 encoder.encode(CharBuffer.wrap("testCanEncodeIllegalState2"), 356 encoder.encode(CharBuffer.wrap("testCanEncodeIllegalState3") [all...] |
CharsetDecoderTest.java | 20 import java.nio.CharBuffer; 199 * Class under test for CharBuffer decode(ByteBuffer) 214 CharBuffer out = decoder.decode(ByteBuffer.allocate(0)); 236 CharBuffer out; 246 CharBuffer buffer = decoder.decode(in); 298 * Class under test for CoderResult decode(ByteBuffer, CharBuffer, boolean) 309 CharBuffer out = CharBuffer.allocate(100); 363 out = CharBuffer.allocate(4); 370 out = CharBuffer.allocate(100) [all...] |
CharsetDecoder2Test.java | 22 import java.nio.CharBuffer; 61 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 81 // CharBuffer charbuf = Charset.forName("UTF-16").decode(buf); 159 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 173 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { 188 CharBuffer out = CharBuffer.allocate(1); 196 out = CharBuffer.allocate(10); 219 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 259 CharBuffer cb = decoder.decode(ByteBuffer.wrap(bytes)) [all...] |
AbstractCharsetTestCase.java | 21 import java.nio.CharBuffer; 125 * Test the method encode(CharBuffer) with null. 129 this.testingCharset.encode((CharBuffer) null); 160 CharBuffer chb = this.testingCharset.decode(ByteBuffer.wrap(input));
|
UTF16CharsetDecoderTest.java | 21 import java.nio.CharBuffer;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
ReaderTest.java | 21 import java.nio.CharBuffer; 30 CharBuffer charBuffer = null; 32 mockReader.read(charBuffer); 40 //the charBuffer has the capacity of 0, then there the number of char read 41 // to the CharBuffer is 0. Furthermore, the MockReader is intact in its content. 45 CharBuffer charBuffer = CharBuffer.allocate(0); 46 int result = mockReader.read(charBuffer); [all...] |
/packages/apps/Email/src/com/beetstra/jutf7/ |
UTF7StyleCharsetDecoder.java | 28 import java.nio.CharBuffer;
62 * java.nio.CharBuffer)
64 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) {
120 private CoderResult handleBase64(ByteBuffer in, CharBuffer out, byte lastRead) {
146 * @see java.nio.charset.CharsetDecoder#implFlush(java.nio.CharBuffer)
148 protected CoderResult implFlush(CharBuffer out) {
|
UTF7StyleCharsetEncoder.java | 28 import java.nio.CharBuffer;
41 * {@link java.nio.charset.CharsetEncoder#encode(CharBuffer)}. Unfortunately,
122 * {@link java.nio.charset.CharsetEncoder#encode(CharBuffer)} to call flush
144 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) {
161 * Charset.encode(CharBuffer) or CharsetEncoder.encode(CharBuffer)
|
/libcore/luni/src/main/java/java/io/ |
Reader.java | 20 import java.nio.CharBuffer; 242 public int read(CharBuffer target) throws IOException {
|
InputStreamReader.java | 21 import java.nio.CharBuffer; 210 CharBuffer out = CharBuffer.wrap(buffer, offset, count);
|
/cts/tools/dasm/src/dasm/ |
Scanner.java | 40 class CharBuffer { 83 protected CharBuffer charBuf = new CharBuffer();
|
/external/qemu/android/ |
charpipe.c | 256 /** This models a charbuffer, an object used to buffer 261 ** by the endpoint will be passed to the CharBuffer's corresponding 265 typedef struct CharBuffer { 271 } CharBuffer; 277 CharBuffer* cbuf = cs->opaque; 296 CharBuffer* cbuf = cs->opaque; 346 charbuffer_poll( CharBuffer* cbuf ) 389 CharBuffer* cbuf = cs->opaque; 400 charbuffer_init( CharBuffer* cbuf, CharDriverState* endpoint ) 418 static CharBuffer _s_charbuffers[ MAX_CHAR_BUFFERS ] [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldReaderTest.java | 21 import java.nio.CharBuffer; 36 CharBuffer buf = CharBuffer.allocate(4);
|
/frameworks/base/wifi/java/android/net/wifi/ |
WifiSsid.java | 24 import java.nio.CharBuffer; 174 CharBuffer out = CharBuffer.allocate(32);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
ChannelsTest.java | 28 import java.nio.CharBuffer; 391 CharBuffer charBuf = CharBuffer.allocate(bufSize); 399 readres = testReader.read((CharBuffer) null); 428 CharBuffer charBuf = CharBuffer.allocate(bufSize); 436 readres = testReader.read((CharBuffer) null); 463 CharBuffer charBuf = CharBuffer.allocate(bufSize); 481 readres = testReader.read((CharBuffer) null) [all...] |