/openjdk7/jdk/src/share/classes/java/lang/ |
H A D | Long.java | 120 char[] buf = new char[65]; 129 buf[charPos--] = Integer.digits[(int)(-(i % radix))]; 132 buf[charPos] = Integer.digits[(int)(-i)]; 135 buf[--charPos] = '-'; 138 return new String(buf, charPos, (65 - charPos)); 242 char[] buf = new char[64]; 247 buf[--charPos] = Integer.digits[(int)(i & mask)]; 250 return new String(buf, charPos, (64 - charPos)); 267 char[] buf = new char[size]; 268 getChars(i, size, buf); 281 getChars(long i, int index, char[] buf) argument [all...] |
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | DataInputStream.java | 502 char buf[] = lineBuffer; 504 if (buf == null) { 505 buf = lineBuffer = new char[128]; 508 int room = buf.length; 530 buf = new char[offset + 128]; 531 room = buf.length - offset - 1; 532 System.arraycopy(lineBuffer, 0, buf, 0, offset); 533 lineBuffer = buf; 535 buf[offset++] = (char) c; 542 return String.copyValueOf(buf, [all...] |
H A D | StreamTokenizer.java | 71 private char buf[] = new char[20]; field in class:StreamTokenizer 621 if (i >= buf.length) { 622 buf = Arrays.copyOf(buf, buf.length * 2); 624 buf[i++] = (char) c; 629 sval = String.copyValueOf(buf, 0, i); 690 if (i >= buf.length) { 691 buf = Arrays.copyOf(buf, bu [all...] |
/openjdk7/hotspot/src/share/vm/compiler/ |
H A D | compileLog.cpp | 203 void CompileLog::finish_log_on_error(outputStream* file, char* buf, int buflen) { argument 216 jio_snprintf(buf, buflen, UINTX_FORMAT, log->thread_id()); 217 file->print_raw(buf); 220 size_t nr; // number read into buf from partial log 227 nr = read(partial_fd, buf, (int)nr); 230 file->write(buf, nr); 236 while ((nr = read(partial_fd, buf, buflen)) > 0) { 243 // { file->write(buf, nr); } 246 const char* bufp; // pointer into buf 248 for (bufp = buf; n 297 char buf[4 * K]; local [all...] |
/openjdk7/jdk/src/share/back/ |
H A D | debugInit.c | 652 char buf[512]; local 665 (void)snprintf(buf, sizeof(buf), "JDWP %s, jvmtiError=%s(%d)", 668 (void)snprintf(buf, sizeof(buf), "JDWP %s", buf); 671 (*((*env)->FatalError))(env, buf); 675 "Can't call JNI FatalError(NULL, \"%s\")", buf); 852 get_tok(char **src, char *buf, int buflen, char sep) argument 858 buf[ 996 char buf[80]; local 1088 char buf[100]; local [all...] |
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/ |
H A D | SOFMarkerSegment.java | 76 samplePrecision = buffer.buf[buffer.bufPtr++]; 77 numLines = (buffer.buf[buffer.bufPtr++] & 0xff) << 8; 78 numLines |= buffer.buf[buffer.bufPtr++] & 0xff; 79 samplesPerLine = (buffer.buf[buffer.bufPtr++] & 0xff) << 8; 80 samplesPerLine |= buffer.buf[buffer.bufPtr++] & 0xff; 81 int numComponents = buffer.buf[buffer.bufPtr++]; 235 componentId = buffer.buf[buffer.bufPtr++]; 236 HsamplingFactor = buffer.buf[buffer.bufPtr] >>> 4; 237 VsamplingFactor = buffer.buf[buffer.bufPtr++] & 0xf; 238 QtableSelector = buffer.buf[buffe [all...] |
/openjdk7/jdk/test/sun/management/windows/ |
H A D | revokeall.c | 46 char buf[128]; local 49 buf[0] = '\0'; 50 len = sizeof(buf); 56 0, buf, len, NULL); 59 if (buf[n - 1] == '\n') n--; 60 if (buf[n - 1] == '\r') n--; 61 if (buf[n - 1] == '.') n--; 62 buf[n] = '\0'; 66 if (strlen(buf) > 0) { 67 fprintf(stderr, "revokeall %s: %s\n", msg, buf); [all...] |
/openjdk7/hotspot/src/share/vm/memory/ |
H A D | tenuredGeneration.cpp | 346 ParGCAllocBufferWithBOT* buf = _alloc_buffers[thread_num]; local 347 HeapWord* obj_ptr = buf->allocate(word_sz); 357 if (word_sz * 100 < ParallelGCBufferWastePct * buf->word_sz()) { 359 size_t buf_size = buf->word_sz(); 366 buf->retire(false, false); 367 buf->set_buf(buf_space); 368 obj_ptr = buf->allocate(word_sz); 393 ParGCAllocBufferWithBOT* buf = _alloc_buffers[thread_num]; local 394 if (buf->contains(obj)) { 395 guarantee(buf 404 ParGCAllocBufferWithBOT* buf = _alloc_buffers[thread_num]; local [all...] |
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/ |
H A D | LdapName.java | 128 StringBuffer buf = new StringBuffer(); 131 buf.append(','); 134 buf.append(rdn); 137 unparsed = new String(buf); 618 StringBuffer buf = new StringBuffer(); 621 buf.append('+'); 623 buf.append(tvs.elementAt(i)); 625 return new String(buf); 797 StringBuffer buf = new StringBuffer(2 * val.length()); 816 buf [all...] |
/openjdk7/jdk/src/share/transport/socket/ |
H A D | socketTransport.c | 76 char buf[255]; local 81 dbgsysGetLastIOError(buf, sizeof(buf)); 92 (int)strlen(buf) + 3; 97 strcat(msg, buf); 151 char *buf; local 159 buf = b; 160 buf += received; 161 n = recv_fully(fd, buf, helloLen-received); 206 char *buf; local 306 char buf[20]; local 582 recv_fully(int f, char *buf, int len) argument 598 send_fully(int f, char *buf, int len) argument [all...] |
/openjdk7/hotspot/src/os/bsd/vm/ |
H A D | os_bsd.cpp | 235 bool os::getenv(const char* name, char* buf, int len) { argument 238 strcpy(buf, val); 241 if (len > 0) buf[0] = 0; // return a null string 475 char buf[MAXPATHLEN]; local 476 os::jvm_path(buf, sizeof(buf)); 480 *(strrchr(buf, '/')) = '\0'; /* get rid of /libjvm.so */ 481 pslash = strrchr(buf, '/'); 484 dll_path = malloc(strlen(buf) + 1); 487 strcpy(dll_path, buf); 600 char *buf = malloc(strlen(Arguments::get_java_home()) + local 605 char *buf = malloc(strlen(Arguments::get_java_home()) + local 616 char * buf; local 1744 local_time_string(char *buf, size_t buflen) argument 1793 char buf[16]; local 1817 lasterror(char *buf, size_t len) argument 1939 get_current_directory(char *buf, int buflen) argument 1964 dll_address_to_function_name(address addr, char *buf, int buflen, int *offset) argument 2001 dll_address_to_library_name(address addr, char* buf, int buflen, int* offset) argument 2060 dll_address_to_library_name(address addr, char* buf, int buflen, int* offset) argument 2300 char buf[32]; local 2438 char buf[buflen]; local 2486 print_signal_handlers(outputStream* st, char* buf, size_t buflen) argument 2505 jvm_path(char *buf, jint buflen) argument 2869 char buf[PATH_MAX + 1]; local 3363 char buf[16]; local 3591 read(int fd, void *buf, unsigned int nBytes) argument 4435 get_signal_handler_name(address handler, char* buf, int buflen) argument 4452 print_signal_handler(outputStream* st, int sig, char* buf, size_t buflen) argument 4542 char buf[O_BUFLEN]; local 4617 exception_name(int exception_code, char* buf, size_t size) argument 4885 char buf[MAXTHREADNAMESIZE]; local 5051 char buf[16]; local 5072 local_vsnprintf(char* buf, size_t count, const char* format, va_list args) argument 5086 char buf[sizeof(struct dirent) + MAX_PATH]; local 5122 struct stat buf; local 5200 struct stat buf; local 5508 struct stat buf; local 6036 char buf[MAXPATHLEN]; local [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xpath/internal/patterns/ |
H A D | StepPattern.java | 792 StringBuffer buf = new StringBuffer(); 797 buf.append("/"); 799 buf.append(Axis.getNames(pat.m_axis)); 800 buf.append("::"); 804 buf.append("doc()"); 808 buf.append("function()"); 812 buf.append("node()"); 816 buf.append("text()"); 820 buf.append("processing-instruction("); 824 buf [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/utilities/soql/ |
H A D | JSJavaField.java | 121 StringBuffer buf = new StringBuffer(); 122 buf.append("Field "); 123 buf.append(field.getFieldHolder().getName().asString().replace('/', '.')); 124 buf.append('.'); 125 buf.append(field.getID().getName()); 126 return buf.toString();
|
/openjdk7/jdk/src/share/classes/java/util/zip/ |
H A D | GZIPInputStream.java | 97 * @param buf the buffer into which the data is read 103 * @exception NullPointerException If <code>buf</code> is <code>null</code>. 106 * <code>buf.length - off</code> 111 public int read(byte[] buf, int off, int len) throws IOException { argument 116 int n = super.read(buf, off, len); 121 return this.read(buf, off, len); 123 crc.update(buf, off, n); 215 new ByteArrayInputStream(buf, len - n, n), in); 236 inf.setInput(buf, len - n + m, n - m);
|
/openjdk7/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/ |
H A D | concurrentMarkSweepThread.hpp | 241 char buf[128]; local 246 jio_snprintf(buf, sizeof(buf), " [%.3f: CMSThread %s] ", 248 buf[sizeof(buf) - 1] = '\0'; 249 gclog_or_tty->print(buf);
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/istack/internal/tools/ |
H A D | ParallelWorldClassLoader.java | 127 byte[] buf = new byte[1024]; 129 while((len=is.read(buf))>=0) 130 baos.write(buf,0,len); 132 buf = baos.toByteArray(); 142 return defineClass(name,buf,0,buf.length);
|
/openjdk7/jdk/test/java/awt/xembed/server/ |
H A D | RunTestXEmbed.java | 51 StringBuilder buf = new StringBuilder(); 53 buf.append(" " + bounds[i].x); 54 buf.append(" " + bounds[i].y); 55 buf.append(" " + bounds[i].width); 56 buf.append(" " + bounds[i].height); 72 + test.getName() + " " + window + buf,
|
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/classfile/ |
H A D | InnerClasses.java | 163 StringBuffer buf = new StringBuffer(); 166 buf.append(inner_classes[i].toString(constant_pool) + "\n"); 168 return buf.toString();
|
/openjdk7/jdk/src/share/classes/org/jcp/xml/dsig/internal/dom/ |
H A D | Utils.java | 49 byte[] buf = new byte[1024]; 51 int read = is.read(buf); 55 baos.write(buf, 0, read);
|
/openjdk7/hotspot/src/share/vm/oops/ |
H A D | oop.cpp | 76 char buf[100]; local 77 stringStream st(buf, sizeof(buf));
|
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/internal/ |
H A D | SnmpTools.java | 84 byte []buf = new byte[size/2]; 121 buf[i] = v; 123 return buf;
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/util/exception/ |
H A D | LocatableWebServiceException.java | 91 StringBuilder buf = new StringBuilder(message); 93 buf.append('\n').append(UtilMessages.UTIL_LOCATION( loc.getLineNumber(), loc.getSystemId() )); 94 return buf.toString();
|
/openjdk7/jdk/test/java/io/Externalizable/compatibility/ |
H A D | ExternalizableBlockData.java | 104 byte[] buf = new byte[256]; 107 while ((n = fin.read(buf)) != -1) { 108 bout.write(buf, 0, n);
|
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/ |
H A D | Lock.java | 195 ByteBuffer buf = Charset.defaultCharset().encode(cmd); 196 while (buf.hasRemaining()) { 197 sc.write(buf); 201 buf = ByteBuffer.allocate(1); 202 int n = sc.read(buf); 205 if (buf.get(0) != TERMINATOR) 275 ByteBuffer buf = ByteBuffer.allocateDirect(1024); 283 buf.clear(); 286 n = sc.read(buf); 292 } while (buf [all...] |
/openjdk7/jdk/src/share/native/java/lang/ |
H A D | ClassLoader.c | 102 char buf[128]; local 132 utfName = getUTF(env, name, buf, sizeof(buf)); 157 if (utfName && utfName != buf) 178 char buf[128]; local 197 utfName = getUTF(env, name, buf, sizeof(buf)); 222 if (utfName && utfName != buf) 249 char buf[128]; local 255 clname = getUTF(env, classname, buf, sizeo [all...] |