Searched defs:format (Results 276 - 300 of 329) sorted by relevance

<<11121314

/openjdk7/jdk/src/share/classes/java/text/
H A DDecimalFormat.java60 * features designed to make it possible to parse and format numbers in any
71 * <code>DecimalFormat</code>. If you need to customize the format object, do
250 * <code>DecimalFormat</code> can be instructed to format and parse scientific
252 * that creates a scientific notation format. In a pattern, the exponent
331 * It is recommended to create separate format instances for each thread.
332 * If multiple threads access a format concurrently, it must be synchronized
339 * // and percent format for each locale</strong>
363 * System.out.print(" -> " + form.format(myNumber));
365 * System.out.println(" -> " + form.parse(form.format(myNumber)));
371 * @see <a href="http://java.sun.com/docs/books/tutorial/i18n/format/decimalForma
488 public final StringBuffer format(Object number, method in class:DecimalFormat
520 public StringBuffer format(double number, StringBuffer result, method in class:DecimalFormat
537 private StringBuffer format(double number, StringBuffer result, method in class:DecimalFormat
621 public StringBuffer format(long number, StringBuffer result, method in class:DecimalFormat
639 private StringBuffer format(long number, StringBuffer result, method in class:DecimalFormat
708 private StringBuffer format(BigDecimal number, StringBuffer result, method in class:DecimalFormat
724 private StringBuffer format(BigDecimal number, StringBuffer result, method in class:DecimalFormat
761 private StringBuffer format(BigInteger number, StringBuffer result, method in class:DecimalFormat
779 private StringBuffer format(BigInteger number, StringBuffer result, method in class:DecimalFormat
[all...]
/openjdk7/jdk/src/share/classes/java/util/
H A DLocale.java1708 // them to format the list.
1780 // Typically, the format is "MainName (Qualifier, Qualifier)" but this
1824 // unused by the format pattern.
1836 return new MessageFormat(displayNamePattern).format(displayNames);
1839 // If we cannot get the message format pattern, then we use a simple
1968 MessageFormat format = new MessageFormat(listCompositionPattern);
1969 stringList = composeList(format, stringList);
1978 MessageFormat format = new MessageFormat(listPattern);
1979 return format.format(arg
1991 composeList(MessageFormat format, String[] list) argument
[all...]
H A DFormatter.java58 * An interpreter for printf-style format strings. This class provides support
70 * {@code printf}. Although the format strings are similar to C, some
74 * thrown. In C inapplicable flags are silently ignored. The format strings
86 * formatter.format("%4$2s %3$2s %2$2s %1$2s", "a", "b", "c", "d")
92 * formatter.format(Locale.FRANCE, "e = %+10.4f", Math.E);
95 * // The '(' numeric flag may be used to format negative numbers with
98 * formatter.format("Amount gained or lost since last statement: $ %(,.2f",
108 * System.out.format("Local time: %tT", Calendar.getInstance());
118 * method {@link String#format(String,Object...) String.format}
2422 format(String format, Object ... args) argument
2461 format(Locale l, String format, Object ... args) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DDirectAudioDevice.java110 AudioFormat format = (AudioFormat)formats.elementAt(i);
111 hardwareFormatArray[i] = format;
112 int bits = format.getSampleSizeInBits();
113 boolean isSigned = format.getEncoding().equals(AudioFormat.Encoding.PCM_SIGNED);
114 boolean isUnsigned = format.getEncoding().equals(AudioFormat.Encoding.PCM_UNSIGNED);
116 // will insert a magically converted format here
123 AudioFormat format = hardwareFormatArray[i];
124 formatArray[formatArrayIndex++] = format;
125 int bits = format.getSampleSizeInBits();
126 boolean isSigned = format
304 getSignOrEndianChangedFormat(AudioFormat format) argument
348 isFormatSupportedInHardware(AudioFormat format) argument
401 DirectDL(DataLine.Info info, DirectAudioDevice mixer, AudioFormat format, int bufferSize, int mixerIndex, int deviceID, boolean isSource) argument
422 implOpen(AudioFormat format, int bufferSize) argument
925 DirectSDL(DataLine.Info info, AudioFormat format, int bufferSize, DirectAudioDevice mixer) argument
942 DirectTDL(DataLine.Info info, AudioFormat format, int bufferSize, DirectAudioDevice mixer) argument
1034 DirectClip(DataLine.Info info, AudioFormat format, int bufferSize, DirectAudioDevice mixer) argument
1044 open(AudioFormat format, byte[] data, int offset, int bufferSize) argument
1056 open(AudioFormat format, byte[] data, int frameLength) argument
1298 implOpen(AudioFormat format, int bufferSize) argument
[all...]
H A DSoftSynthesizer.java212 private AudioFormat format = new AudioFormat(44100, 16, 2, true, false); field in class:SoftSynthesizer
364 private void setFormat(AudioFormat format) { argument
365 if (format.getChannels() > 2) {
369 if (AudioFloatConverter.getConverter(format) == null)
370 throw new IllegalArgumentException("Audio format not supported.");
371 this.format = format;
495 return format;
894 item = new AudioSynthesizerPropertyInfo("format",
895 o?format
[all...]
/openjdk7/hotspot/src/os/windows/launcher/
H A Djava_md.c190 const char * format = "Error: no `%s' JVM at `%s'."; local
191 message = (char *)JLI_MemAlloc((strlen(format)+strlen(jvmtype)+
193 sprintf(message,format, jvmtype, jvmpath);
217 const char * format = "Error: no JVM at `%s'.";
218 message = (char *)JLI_MemAlloc((strlen(format)+
220 sprintf(message, format, jvmpath);
699 void ReportErrorMessage2(char * format, char * string, jboolean always) { argument
701 * The format argument must be a printf format string with one %s
707 size = strlen(format)
729 ReportSysErrorMessage2(char * format, char * string, jboolean always) argument
[all...]
/openjdk7/hotspot/src/share/vm/asm/
H A DcodeBuffer.cpp296 void CodeSection::relocate(address at, RelocationHolder const& spec, int format) { argument
350 (*end) = relocInfo(rtype, offset, format);
/openjdk7/hotspot/src/share/vm/utilities/
H A Ddebug.cpp94 FormatBufferResource::FormatBufferResource(const char * format, ...) argument
97 va_start(argp, format);
98 jio_vsnprintf(_buf, RES_BUFSZ, format, argp);
102 void warning(const char* format, ...) { argument
109 va_start(ap, format);
110 tty->vprint_cr(format, ap);
H A Dostream.cpp85 const char* format, va_list ap,
90 if (!strchr(format, '%')) {
91 // constant format string
92 result = format;
95 } else if (format[0] == '%' && format[1] == 's' && format[2] == '\0') {
96 // trivial copy-through format string
100 } else if (vsnprintf(buffer, buflen, format, ap) >= 0) {
120 void outputStream::print(const char* format, argument
84 do_vsnprintf(char* buffer, size_t buflen, const char* format, va_list ap, bool add_cr, size_t& result_len) argument
130 print_cr(const char* format, ...) argument
140 vprint(const char *format, va_list argptr) argument
147 vprint_cr(const char* format, va_list argptr) argument
955 print(const char* format, ...) argument
964 print_cr(const char* format, ...) argument
973 vprint(const char *format, va_list argptr) argument
979 vprint_cr(const char* format, va_list argptr) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/javax/xml/bind/
H A DDatatypeConverterImpl.java897 public static String doFormat(String format, Calendar cal) throws IllegalArgumentException { argument
899 int flen = format.length();
903 char fch = format.charAt(fidx++);
910 // seen meta character. we don't do error check against the format
911 switch (format.charAt(fidx++)) {
/openjdk7/jdk/src/solaris/native/java/lang/
H A DUNIXProcess_md.c481 static const char * const format = "error=%d, %s"; local
492 errmsg = NEW(char, strlen(format) + strlen(detail) + 3 * sizeof(errnum));
493 sprintf(errmsg, format, errnum, detail);
507 debugPrint(char *format, ...) argument
511 va_start(ap, format);
512 vfprintf(tty, format, ap);
/openjdk7/jdk/src/windows/native/com/sun/management/
H A DOperatingSystem_md.c334 * @param format the format to use (i.e. PDH_FMT_DOUBLE, PDH_FMT_LONG etc)
340 getPerformanceData(UpdateQueryP query, HCOUNTER c, PDH_FMT_COUNTERVALUE* value, DWORD format) { argument
357 if (PdhGetFormattedCounterValue_i(c, format, NULL, value) != ERROR_SUCCESS) {
/openjdk7/jdk/src/share/classes/sun/security/x509/
H A DX500Name.java169 * Constructs a name from a string formatted according to format.
171 * DEFAULT is the default format used by the X500Name(String)
172 * constructor. RFC2253 is format strictly according to RFC2253
177 public X500Name(String dname, String format) throws IOException { argument
181 if (format.equalsIgnoreCase("RFC2253")) {
183 } else if (format.equalsIgnoreCase("DEFAULT")) {
186 throw new IOException("Unsupported format " + format);
607 * The format of the string is from RFC 1779. The returned string
1230 * format
[all...]
/openjdk7/jdk/src/share/classes/sun/print/
H A DRasterPrinterJob.java380 abstract protected void startPage(PageFormat format, Printable painter, argument
387 abstract protected void endPage(PageFormat format, Printable painter, argument
608 * the format indicated by the user if the dialog is
976 * for each page is the default page format.
986 * of each page is 'format'.
991 public void setPrintable(Printable painter, PageFormat format) { argument
992 setPageable(new OpenBook(format, painter));
993 updatePageAttributes(getPrintService(), format);
1921 * DIB format wants the last line to be first (lowest) in
1925 * format
[all...]
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/
H A DXRBackendNative.java277 private static native int XRenderCreateGlyphSetNative(long format); argument
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/serializer/
H A DToStream.java427 * Specifies an output format for this serializer. It the
428 * serializer has already been associated with an output format,
429 * it will switch to the new format. This method should not be
433 * @param format The output format to use
435 public void setOutputFormat(Properties format) argument
440 init(m_writer, format, false, false);
446 * Initialize the serializer with the specified writer and output format.
449 * passed in the 'format' parameter are accumulated across calls.
452 * @param format Th
455 init( Writer writer, Properties format, boolean defaultProperties, boolean shouldFlush) argument
569 init(Writer writer, Properties format) argument
585 init( OutputStream output, Properties format, boolean defaultProperties) argument
[all...]
/openjdk7/hotspot/agent/src/os/solaris/proc/
H A Dsaproc.cpp51 static void dprintf_2(const char* format,...) { argument
55 va_start(alist, format);
57 vfprintf(stderr, format, alist);
63 static void print_debug(const char* format,...) { argument
67 va_start(alist, format);
69 vfprintf(stderr, format, alist);
505 // The format of sharing achive file header is needed to read shared heap
727 /* G_FORMAT */ "File is not an ELF format core file - corrupted core?",
1328 // release is major.minor format
/openjdk7/jdk/src/share/classes/sun/awt/datatransfer/
H A DDataTransferer.java129 * array, given a source DataFlavor and a target format, and for translating
130 * a byte array or InputStream into an Object, given a source format and
583 * MIME parameters specific to the flavormap.properties file format.
587 Long format = getFormatForNativeAsLong(nat);
589 textNatives.add(format);
590 nativeCharsets.put(format, (charset != null && charset.length() != 0)
593 nativeEOLNs.put(format, eoln);
598 nativeTerminators.put(format, iTerminators);
604 * Determines whether the native corresponding to the specified long format
607 protected boolean isTextFormat(long format) { argument
621 isLocaleDependentTextFormat(long format) argument
627 isFileFormat(long format) argument
633 isImageFormat(long format) argument
639 isURIListFormat(long format) argument
780 getFlavorsForFormat(long format, FlavorTable map) argument
917 getFlavorsForFormatAsArray(long format, FlavorTable map) argument
970 getNativeForFormat(long format) argument
1008 translateTransferableString(String str, long format) argument
1066 translateBytesOrStreamToString(InputStream str, byte[] bytes, long format, Transferable localeTransferable) argument
1164 translateTransferable(Transferable contents, DataFlavor flavor, long format) argument
1559 translateBytes(byte[] bytes, DataFlavor flavor, long format, Transferable localeTransferable) argument
1567 translateStream(InputStream str, DataFlavor flavor, long format, Transferable localeTransferable) argument
1586 translateBytesOrStream(InputStream str, byte[] bytes, DataFlavor flavor, long format, Transferable localeTransferable) argument
1796 translateBytesOrStreamToInputStream(InputStream str, DataFlavor flavor, long format, Transferable localeTransferable) argument
1884 ReencodingInputStream(InputStream bytestream, long format, String targetEncoding, Transferable localeTransferable) argument
2051 dragQueryURIs(InputStream stream, byte[] bytes, long format, Transferable localeTransferable) argument
2065 platformImageBytesOrStreamToImage(InputStream str, byte[] bytes, long format) argument
2129 imageToPlatformBytes(Image image, long format) argument
2295 convertData(final Object source, final Transferable contents, final long format, final Map formatMap, final boolean isToolkitThread) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/font/
H A DSunFontManager.java902 FontRegistrationInfo(String fontPath, String[] names, int format, argument
906 this.fontFormat = format;
1758 * Currently this code only looks for TrueType fonts, so format
2024 /* Currently this code only looks for TrueType fonts, so format
2040 /* Currently this code only looks for TrueType fonts, so format
/openjdk7/hotspot/src/share/vm/code/
H A DrelocInfo.hpp83 // On some machines, there may also be a "format" field which may provide
84 // additional information about the format of the instruction stream
85 // at the corresponding code address. The format value is usually zero.
87 // more than one relocatable constant needs format codes to distinguish
90 // If the target machine needs N format bits, the offset has 12-N bits,
91 // the format is encoded between the offset and the type, and the
92 // relocInfo_<arch>.hpp file has manifest constants for the format codes.
117 // Data: Any data prefix and format code are ignored
288 relocInfo(relocType type, int offset, int format = 0)
291 (*this) = relocInfo(type, RAW_BITS, offset, format);
327 int format() const { return format_mask==0? 0: format_mask & function in class:VALUE_OBJ_CLASS_SPEC
607 int format() const { return (relocInfo::have_format) ? current()->format() : 0; } function in class:RelocIterator
822 int format() const { return binding()->format(); } function in class:VALUE_OBJ_CLASS_SPEC
[all...]
/openjdk7/hotspot/src/share/vm/oops/
H A DgenerateOopMap.cpp2125 void GenerateOopMap::error_work(const char *format, va_list ap) { argument
2128 vsnprintf(msg_buffer, sizeof(msg_buffer), format, ap);
2136 void GenerateOopMap::report_error(const char *format, ...) { argument
2138 va_start(ap, format);
2139 error_work(format, ap);
2142 void GenerateOopMap::verify_error(const char *format, ...) { argument
/openjdk7/hotspot/src/share/vm/opto/
H A Dcallnode.cpp377 //------------------------------format-----------------------------------------
378 void JVMState::format(PhaseRegAlloc *regalloc, const Node *n, outputStream* st) const { function in class:JVMState
483 if (caller() != NULL) caller()->format(regalloc, n, st);
H A Dcfgnode.cpp2215 void NeverBranchNode::format( PhaseRegAlloc *ra_, outputStream *st) const { function in class:NeverBranchNode
H A Dmachnode.hpp341 virtual void format( PhaseRegAlloc *, outputStream *st ) const;
368 virtual void format(PhaseRegAlloc*, outputStream* st) const;
414 virtual void format( PhaseRegAlloc *, outputStream *st ) const;
429 virtual void format( PhaseRegAlloc *, outputStream *st ) const;
454 virtual void format( PhaseRegAlloc *, outputStream *st ) const;
475 virtual void format( PhaseRegAlloc *, outputStream *st ) const;
510 virtual void format( PhaseRegAlloc *, outputStream *st ) const;
556 virtual void format( PhaseRegAlloc *, outputStream *st ) const;
854 virtual void format(PhaseRegAlloc *, outputStream *st ) const {} function in class:MachTempNode
H A Dnode.cpp943 //------------------------------format-----------------------------------------
945 void Node::format( PhaseRegAlloc *, outputStream *st ) const {} function in class:Node

Completed in 132 milliseconds

<<11121314