Searched defs:length (Results 251 - 275 of 839) sorted by relevance

<<11121314151617181920>>

/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/resolver/readers/
H A DXCatalogReader.java172 public void characters (char ch[], int start, int length) argument
178 public void ignorableWhitespace (char ch[], int start, int length) argument
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/serialize/
H A DXML11Serializer.java183 public void characters( char[] chars, int start, int length )
208 final int end = start + length;
250 printText( chars, start, length, true, state.unescaped );
253 printText( chars, start, length, false, state.unescaped );
266 int length = source.length();
267 for ( int i = 0 ; i < length ; ++i ) {
270 if (++i <length) {
294 int length = text.length();
478 printText( char[] chars, int start, int length, boolean preserveSpace, boolean unescaped ) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/serializer/
H A DSerializerTrace.java133 * @param length The end offset to be used in the chara array.
135 public void fireGenerateEvent(int eventType, char ch[], int start, int length); argument
/openjdk7/jaxp/src/com/sun/org/apache/xpath/internal/objects/
H A DXStringForChars.java39 /** The length of the string. */
49 * @param length The number of characters to read from the array.
51 public XStringForChars(char[] val, int start, int length) argument
55 m_length = length;
121 * Since this object is incomplete without the length and the offset, we
164 * Returns the length of this string.
166 * @return the length of the sequence of characters represented by this
169 public int length() method in class:XStringForChars
176 * from <code>0</code> to <code>length() - 1</code>. The first character
184 * argument is negative or not less than the length o
[all...]
/openjdk7/jaxp/src/com/sun/xml/internal/stream/writers/
H A DWriterUtility.java123 public void writeXMLContent(char[] content, int start, int length) throws IOException{ argument
124 writeXMLContent(content, start, length, getEscapeCharacters());
131 private void writeXMLContent(char[] content, int start, int length, boolean escapeCharacter) throws IOException{ argument
133 System.out.println("content to write is " + new String(content, start, length));
138 final int end = start + length ;
227 if(content == null || content.length() == 0) return ;
228 writeXMLContent(content.toCharArray(), 0, content.length());
239 writeXMLContent(value.toCharArray(), 0, value.length(), true);
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/dynamicany/
H A DDynAnyComplexImpl.java112 if( ! checkInitComponents() || index < 0 || index >= names.length) {
125 if( ! checkInitComponents() || index < 0 || index >= components.length) {
139 if (value == null || value.length == 0) {
155 if (expectedMemberCount != value.length) {
162 for (int i=0; i<value.length; i++) {
201 index = (value.length == 0 ? NO_INDEX : 0);
213 if (value == null || value.length == 0) {
229 if (expectedMemberCount != value.length) {
236 for (int i=0; i<value.length; i++) {
271 index = (value.length
279 allocComponents(int length) argument
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/encoding/
H A DCDROutputStream_1_2.java68 // 1. Write the length of the chunk including the array length
94 // and write the total chunk length.
122 // Thus, no one can go back to add more to the chunk length
212 // the chunk length to include the length of the primitive (unless
242 // At this point, oldSize is the entire length of the
243 // previous buffer. bbwi.position() is the length of the
261 // In GIOP 1.2, a wchar is encoded as an unsigned octet length
286 public void write_wchar_array(char[] value, int offset, int length) argument
[all...]
/openjdk7/corba/src/share/classes/org/omg/CORBA/
H A DDataInputStream.java189 /** Reads array of IDL Anys from offset for length elements from the
194 * @param length The number of elements to read from the input stream.
199 void read_any_array (org.omg.CORBA.AnySeqHolder seq, int offset, int length); argument
201 /** Reads array of IDL booleans from offset for length elements from the
206 * @param length The number of elements to read from the input stream.
211 void read_boolean_array (org.omg.CORBA.BooleanSeqHolder seq, int offset, int length); argument
213 /** Reads array of IDL characters from offset for length elements from the
218 * @param length The number of elements to read from the input stream.
223 void read_char_array (org.omg.CORBA.CharSeqHolder seq, int offset, int length); argument
225 /** Reads array of IDL wide characters from offset for length element
235 read_wchar_array(org.omg.CORBA.WCharSeqHolder seq, int offset, int length) argument
247 read_octet_array(org.omg.CORBA.OctetSeqHolder seq, int offset, int length) argument
259 read_short_array(org.omg.CORBA.ShortSeqHolder seq, int offset, int length) argument
271 read_ushort_array(org.omg.CORBA.UShortSeqHolder seq, int offset, int length) argument
283 read_long_array(org.omg.CORBA.LongSeqHolder seq, int offset, int length) argument
295 read_ulong_array(org.omg.CORBA.ULongSeqHolder seq, int offset, int length) argument
307 read_ulonglong_array(org.omg.CORBA.ULongLongSeqHolder seq, int offset, int length) argument
319 read_longlong_array(org.omg.CORBA.LongLongSeqHolder seq, int offset, int length) argument
331 read_float_array(org.omg.CORBA.FloatSeqHolder seq, int offset, int length) argument
343 read_double_array(org.omg.CORBA.DoubleSeqHolder seq, int offset, int length) argument
[all...]
H A DDataOutputStream.java155 * Writes the array of IDL Anys from offset for length elements to the
160 * @param length The number of elements to write to the output stream.
162 void write_any_array (org.omg.CORBA.Any[] seq, int offset, int length); argument
165 * Writes the array of IDL booleans from offset for length elements to the
170 * @param length The number of elements to write to the output stream.
172 void write_boolean_array (boolean[] seq, int offset, int length); argument
175 * Writes the array of IDL characters from offset for length elements to the
180 * @param length The number of elements to write to the output stream.
182 void write_char_array (char[] seq, int offset, int length); argument
185 * Writes the array of IDL wide characters from offset for length element
192 write_wchar_array(char[] seq, int offset, int length) argument
202 write_octet_array(byte[] seq, int offset, int length) argument
212 write_short_array(short[] seq, int offset, int length) argument
222 write_ushort_array(short[] seq, int offset, int length) argument
232 write_long_array(int[] seq, int offset, int length) argument
242 write_ulong_array(int[] seq, int offset, int length) argument
252 write_ulonglong_array(long[] seq, int offset, int length) argument
262 write_longlong_array(long[] seq, int offset, int length) argument
272 write_float_array(float[] seq, int offset, int length) argument
282 write_double_array(double[] seq, int offset, int length) argument
[all...]
/openjdk7/corba/src/share/classes/sun/rmi/rmic/iiop/
H A DStaticStringsHash.java43 * <li> length() - works well when all strings are different length.</li>
50 * "length()", "charAt(n)", or "hashCode()", and is intended for use by
82 case LENGTH: return str.length();
96 length = strings.length;
97 tempKeys = new int[length];
98 bucketSizes = new int[length];
103 // bucket depth. First, try length()...
121 if (length > CHAR_AT_MAX_LINE
268 private int length; field in class:StaticStringsHash
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/jdi/
H A DArrayTypeImpl.java46 public ArrayReference newInstance(int length) { argument
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/
H A DConstantPoolCache.java52 length = new CIntField(type.getCIntegerField("_length"), 0);
65 private static CIntField length; field in class:ConstantPoolCache
122 return (int) length.getValue(this);
H A DSymbol.java48 length = type.getCIntegerField("_length");
56 // [length] byte size of uft8 string
75 private static CIntegerField length; field in class:Symbol
78 public long getLength() { return length.getValue(this.addr); }
90 if (l != modUTF8Chars.length) return false;
101 int length = (int) getLength();
102 byte [] result = new byte [length];
103 for (int index = 0; index < length; index++) {
138 final int len = buf.length;
140 // write modified UTF-8 length a
[all...]
/openjdk7/jdk/src/share/classes/javax/sound/sampled/
H A DAudioInputStream.java35 * length. The length is expressed in sample frames, not bytes.
75 * This stream's length, in sample frames.
118 * Constructs an audio input stream that has the requested format and length in sample frames,
123 * @param length the length in sample frames of the data in this stream
125 public AudioInputStream(InputStream stream, AudioFormat format, long length) { argument
130 this.frameLength = length;
148 * the target data line, and the length is AudioSystem#NOT_SPECIFIED.
178 * Obtains the length o
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DListSelectionModel.java207 * Insert length indices beginning before/after index. This is typically
211 void insertIndexInterval(int index, int length, boolean before); argument
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DDocument.java301 * The offset and length of the generated DocumentEvent
337 * @param length the length of the desired string >= 0
338 * @return the text, in a String of length >= 0
343 public String getText(int offset, int length) throws BadLocationException; argument
350 * data returned in the Segment will be the entire length requested and
375 * @param length the length of the desired string >= 0
382 public void getText(int offset, int length, Segment txt) throws BadLocationException; argument
H A DNumberFormatter.java251 for (int counter = text.length() - 1; counter >= 0; counter--) {
346 void replace(DocumentFilter.FilterBypass fb, int offset, int length, argument
348 if (!getAllowsInvalid() && length == 0 && string != null &&
349 string.length() == 1 &&
353 super.replace(fb, offset, length, string, attr);
409 if (string != null && string.length() > 0) {
419 if (string.length() > 0 && string.charAt(0) != '-') {
H A DSegment.java89 * an implementation of the interface method Document.getText(position,length,Segment)
91 * state of the flag is false which will cause Document.getText(position,length,Segment)
273 public int length() { method in class:Segment
/openjdk7/jdk/src/share/classes/sun/font/
H A DStandardTextSource.java84 if (cstart + clen > chars.length) {
85 throw new IllegalArgumentException("bad clen: " + clen + " cstart: " + cstart + " for array len: " + chars.length);
136 this(chars, 0, chars.length, 0, chars.length, level, flags, font, frc, null);
145 this(str.toCharArray(), 0, str.length(), 0, str.length(), level, flags, font, frc, null);
190 public TextSource getSubSource(int start, int length, int dir) { argument
191 if (start < 0 || length < 0 || (start + length) > len) {
192 throw new IllegalArgumentException("bad start (" + start + ") or length ("
[all...]
/openjdk7/jdk/src/share/classes/java/awt/image/
H A DRescaleOp.java86 int length = 0; field in class:RescaleOp
95 * and offsets. The length of the scaleFactor and offset arrays
105 length = scaleFactors.length;
106 if (length > offsets.length) length = offsets.length;
108 this.scaleFactors = new float[length];
109 this.offsets = new float[length];
[all...]
/openjdk7/jdk/src/share/classes/java/beans/
H A DPropertyChangeSupport.java161 * for (int i = 0; i < listeners.length; i++) {
511 * when {@code length} equals {@code 0}.
513 * @param length the array length
514 * @return an array with specified length
517 protected PropertyChangeListener[] newArray(int length) { argument
518 return (0 < length)
519 ? new PropertyChangeListener[length]
/openjdk7/jdk/src/share/classes/java/io/
H A DConsole.java245 if (fmt.length() != 0)
316 if (fmt.length() != 0)
374 int len = reader.read(rcb, 0, rcb.length);
396 char[] t = new char[rcb.length * 2];
397 System.arraycopy(rcb, 0, t, 0, rcb.length);
419 public int read(char cbuf[], int offset, int length) argument
423 int end = offset + length;
424 if (offset < 0 || offset > cbuf.length || length < 0 ||
425 end < 0 || end > cbuf.length) {
[all...]
/openjdk7/jdk/src/share/classes/java/lang/reflect/
H A DArray.java48 * length.
53 * int[] x = {length};
60 * @param length the length of the new array
65 * @exception NegativeArraySizeException if the specified {@code length}
68 public static Object newInstance(Class<?> componentType, int length) argument
70 return newArray(componentType, length);
78 * has {@code dimensions.length} dimensions and
82 * of {@code dimensions.length} and the number of
112 * Returns the length o
477 newArray(Class componentType, int length) argument
[all...]
/openjdk7/jdk/src/share/classes/java/nio/channels/
H A DAsynchronousSocketChannel.java423 * segments consisting of one or more fixed-length headers followed by a
424 * variable-length body. The {@code handler} parameter is a completion
437 * + ... + dsts[offset+length-1].remaining()</pre></blockquote>
441 * <p> Suppose that a byte sequence of length <i>n</i> is read, where
469 * {@code dsts.length}
470 * @param length
472 * and no larger than {@code dsts.length - offset}
483 * If the pre-conditions for the {@code offset} and {@code length}
496 int length,
575 * segments consisting of one or more fixed-length header
494 read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler) argument
641 write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler) argument
[all...]
H A DDatagramChannel.java494 public abstract long read(ByteBuffer[] dsts, int offset, int length) argument
511 return read(dsts, 0, dsts.length);
544 public abstract long write(ByteBuffer[] srcs, int offset, int length) argument
565 return write(srcs, 0, srcs.length);

Completed in 75 milliseconds

<<11121314151617181920>>