Searched refs:buffer (Results 1 - 25 of 223) sorted by relevance

123456789

/dalvik/libcore/luni/src/main/java/java/io/
H A DOutputStream.java70 * Writes the entire contents of the byte array {@code buffer} to this
73 * @param buffer
74 * the buffer to be written.
78 public void write(byte[] buffer) throws IOException { argument
82 write(buffer, 0, buffer.length);
86 * Writes {@code count} bytes from the byte array {@code buffer} starting at
89 * @param buffer
90 * the buffer to be written.
92 * the start position in {@code buffer} fro
103 write(byte[] buffer, int offset, int count) argument
[all...]
H A DRandomAccessFile.java312 * byte array {@code buffer}. The maximum number of bytes read corresponds
313 * to the size of {@code buffer}. Blocks until at least one byte has been
316 * @param buffer
323 public int read(byte[] buffer) throws IOException { argument
324 return read(buffer, 0, buffer.length);
329 * and stores them in the byte array {@code buffer} starting at {@code
333 * @param buffer
336 * the initial position in {@code buffer} to store the bytes read
339 * the maximum number of bytes to store in {@code buffer}
348 read(byte[] buffer, int offset, int count) argument
477 readFully(byte[] buffer) argument
503 readFully(byte[] buffer, int offset, int count) argument
799 write(byte[] buffer) argument
822 write(byte[] buffer, int offset, int count) argument
[all...]
H A DObjectInput.java58 * Reads bytes from this stream into the byte array {@code buffer}. Blocks
61 * @param buffer
68 public int read(byte[] buffer) throws IOException; argument
72 * byte array {@code buffer} starting at offset {@code count}. Blocks while
75 * @param buffer
78 * the initial position in {@code buffer} to store the bytes read
81 * the maximum number of bytes to store in {@code buffer}.
87 public int read(byte[] buffer, int offset, int count) throws IOException; argument
H A DObjectOutput.java46 * Writes the entire contents of the byte array {@code buffer} to the output
49 * @param buffer
50 * the buffer to write.
54 public void write(byte[] buffer) throws IOException; argument
57 * Writes {@code count} bytes from the byte array {@code buffer} starting at
61 * @param buffer
62 * the buffer to write.
64 * the index of the first byte in {@code buffer} to write.
66 * the number of bytes from {@code buffer} to write to the target
71 public void write(byte[] buffer, in argument
[all...]
/dalvik/libcore/luni/src/main/java/java/util/
H A DDuplicateFormatFlagsException.java61 StringBuilder buffer = new StringBuilder();
62 buffer.append("Flags of the DuplicateFormatFlagsException is'");
63 buffer.append(flags);
64 buffer.append("'");
65 return buffer.toString();
H A DIllegalFormatFlagsException.java63 StringBuilder buffer = new StringBuilder();
64 buffer.append("Flags = '");
65 buffer.append(flags);
66 buffer.append("'");
67 return buffer.toString();
H A DFormatFlagsConversionMismatchException.java78 StringBuilder buffer = new StringBuilder();
79 buffer.append("Mismatched Convertor =");
80 buffer.append(c);
81 buffer.append(", Flags= ");
82 buffer.append(f);
83 return buffer.toString();
H A DIllegalFormatCodePointException.java61 StringBuilder buffer = new StringBuilder();
62 buffer.append("Code point is ");
65 buffer.append(chars[i]);
67 return buffer.toString();
H A DIllegalFormatConversionException.java79 StringBuilder buffer = new StringBuilder();
80 buffer.append(c);
81 buffer.append(" is incompatible with ");
82 buffer.append(arg.getName());
83 return buffer.toString();
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/
H A DExtensionValue.java55 public void dumpValue(StringBuffer buffer, String prefix) { argument
56 buffer.append(prefix).append("Unparseable extension value:\n"); //$NON-NLS-1$
61 buffer.append("NULL\n"); //$NON-NLS-1$
63 buffer.append(Array.toString(encoding, prefix));
71 public void dumpValue(StringBuffer buffer) { argument
72 dumpValue(buffer, ""); //$NON-NLS-1$
H A DReasonCode.java91 public void dumpValue(StringBuffer buffer, String prefix) { argument
92 buffer.append(prefix).append("Reason Code: [ "); //$NON-NLS-1$
95 buffer.append("unspecified"); //$NON-NLS-1$
98 buffer.append("keyCompromise"); //$NON-NLS-1$
101 buffer.append("cACompromise"); //$NON-NLS-1$
104 buffer.append("affiliationChanged"); //$NON-NLS-1$
107 buffer.append("superseded"); //$NON-NLS-1$
110 buffer.append("cessationOfOperation"); //$NON-NLS-1$
113 buffer.append("certificateHold"); //$NON-NLS-1$
116 buffer
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
H A DSocketInputStream.java60 byte[] buffer = new byte[1];
61 int result = socket.read(buffer, 0, 1);
62 return (-1 == result) ? result : buffer[0] & 0xFF;
66 public int read(byte[] buffer) throws IOException { argument
67 return read(buffer, 0, buffer.length);
71 public int read(byte[] buffer, int offset, int count) throws IOException { argument
72 if (null == buffer) {
80 if (0 > offset || offset >= buffer.length) {
84 if (0 > count || offset + count > buffer
[all...]
H A DSocketOutputStream.java49 public void write(byte[] buffer) throws IOException { argument
50 socket.write(buffer, 0, buffer.length);
54 public void write(byte[] buffer, int offset, int count) throws IOException { argument
56 if (buffer != null) {
57 if (0 <= offset && offset <= buffer.length && 0 <= count
58 && count <= buffer.length - offset) {
59 socket.write(buffer, offset, count);
70 byte[] buffer = new byte[1];
71 buffer[
[all...]
H A DSocks4Message.java55 protected byte[] buffer; field in class:Socks4Message
59 buffer = new byte[BUFFER_LENGTH];
67 return buffer[INDEX_COMMAND];
74 buffer[INDEX_COMMAND] = (byte) command;
102 buffer[INDEX_IP] = ip[0];
103 buffer[INDEX_IP + 1] = ip[1];
104 buffer[INDEX_IP + 2] = ip[2];
105 buffer[INDEX_IP + 3] = ip[3];
147 for (index = INDEX_USER_ID; buffer[index] != 0; index++) {
176 * Answer the message's byte buffer
[all...]
/dalvik/libcore/support/src/test/java/tests/support/
H A DSupport_OutputStream.java17 private byte[] buffer; field in class:Support_OutputStream
35 buffer = new byte[bufferSize];
58 public void write(byte buffer[]) throws IOException { argument
62 for (int i = 0; i < buffer.length; i++) {
63 write(buffer[i]);
68 public void write(byte buffer[], int offset, int count) throws IOException { argument
72 if (offset < 0 || count < 0 || (offset + count) > buffer.length) {
76 write(buffer[i]);
86 buffer[position] = (byte)(oneByte & 255);
89 throw new IOException("Internal buffer overflo
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/
H A DCharacterDataImpl.java35 protected StringBuffer buffer; field in class:CharacterDataImpl
43 buffer.append(arg);
47 buffer.delete(offset, offset + count);
51 return buffer.toString();
58 stringBuilder.append(buffer);
62 return buffer.length();
72 buffer.insert(offset, arg);
81 buffer.replace(offset, offset + count, arg);
88 buffer = new StringBuffer(data);
93 return buffer
[all...]
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DHandshakeIODataStream.java58 * or incompleate filling of destination buffer)
85 // buffer is used to keep the handshaking data;
88 private byte[] buffer = new byte[buff_size]; field in class:HandshakeIODataStream
126 * to delete one message from the internal buffer.
129 System.arraycopy(buffer, read_pos,
130 buffer, marked_pos, read_pos_end - read_pos);
146 return buffer[read_pos++] & 0xFF;
160 System.arraycopy(buffer, read_pos, res, 0, length);
170 System.arraycopy(buffer, read_pos, dest, offset, length);
179 * The attempts to overflow the buffer b
[all...]
H A DSSLEngineAppData.java34 byte[] buffer; field in class:SSLEngineAppData
43 * just the array reference is remembered into the buffer field.
46 if (buffer != null) {
51 buffer = src;
55 * Places the data from the buffer into the array of destination
59 if (buffer == null) {
63 int len = buffer.length;
70 // can fully write remaining data into buffer
71 dsts[i].put(buffer, pos, len - pos);
77 dsts[i].put(buffer, po
[all...]
/dalvik/libcore/nio/src/main/java/java/nio/channels/
H A DFileLock.java198 StringBuilder buffer = new StringBuilder(64); // Guess length of string
199 buffer.append("FileLock: [position=");
200 buffer.append(position);
201 buffer.append(", size=");
202 buffer.append(size);
203 buffer.append(", shared=");
204 buffer.append(Boolean.toString(shared));
205 buffer.append("]");
206 return buffer.toString();
/dalvik/libcore/xml/src/main/java/javax/xml/parsers/
H A DFilePathToURI.java64 StringBuffer buffer = new StringBuffer(len*3);
65 buffer.append("file://");
70 buffer.append('/');
82 buffer.append('%');
83 buffer.append(gAfterEscaping1[ch]);
84 buffer.append(gAfterEscaping2[ch]);
88 buffer.append((char)ch);
111 buffer.append('%');
112 buffer.append(gHexChs[ch >> 4]);
113 buffer
[all...]
/dalvik/libcore/xml/src/main/java/javax/xml/transform/stream/
H A DFilePathToURI.java64 StringBuffer buffer = new StringBuffer(len*3);
65 buffer.append("file://");
70 buffer.append('/');
82 buffer.append('%');
83 buffer.append(gAfterEscaping1[ch]);
84 buffer.append(gAfterEscaping2[ch]);
88 buffer.append((char)ch);
111 buffer.append('%');
112 buffer.append(gHexChs[ch >> 4]);
113 buffer
[all...]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/crypto/
H A DSHA1_MessageDigestImpl.java43 private int buffer[]; // buffer has the following structure: field in class:SHA1_MessageDigestImpl
50 private byte oneByte[]; // one byte buffer needed to use in engineUpdate(byte)
51 // having buffer as private field is just optimization
62 buffer = new int[BYTES_OFFSET +6];
94 lastWord = (buffer[BYTES_OFFSET] + 3)>>2 ; // computing of # of full words by shifting
99 // - buffer[BYTES_OFFSET] == 0 - buffer frame is empty,
110 if ( buffer[BYTES_OFFSET] != 0 ) {
116 buffer[1
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DInputStreamHelper.java34 * Provides access to a protected underlying buffer of
40 * Provides access to a protected position in the underlying buffer of
66 * underlying buffer.
94 final byte[] buffer = new byte[available];
95 System.arraycopy(buf, pos, buffer, 0, available);
97 return buffer;
103 * underlying buffer directly.
105 * @return an underlying buffer, if a current position is at the buffer
106 * beginning, and an end position is at the buffer en
[all...]
/dalvik/dx/src/junit/framework/
H A DTestFailure.java40 StringBuffer buffer= new StringBuffer();
41 buffer.append(fFailedTest+": "+fThrownException.getMessage());
42 return buffer.toString();
48 StringBuffer buffer= stringWriter.getBuffer();
49 return buffer.toString();
/dalvik/libcore/junit/src/main/java/junit/framework/
H A DTestFailure.java40 StringBuffer buffer= new StringBuffer();
41 buffer.append(fFailedTest+": "+fThrownException.getMessage());
42 return buffer.toString();
48 StringBuffer buffer= stringWriter.getBuffer();
49 return buffer.toString();

Completed in 418 milliseconds

123456789