Searched refs:length (Results 1 - 25 of 1534) sorted by relevance

1234567891011>>

/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/
H A DStringParser.java119 * character of the string (i.e. equal to the string length) if you
127 * The length of the String we are currently parsing. Stored when the
130 private int length = 0; field in class:StringParser
154 * Return the length of the string we are parsing.
158 return (this.length);
183 this.length = string.length();
186 this.length = 0;
203 if (index < length)
212 * possible, a zero-length strin
[all...]
H A DMD5Encoder.java86 if (binaryData.length != 16)
H A DDigestEncoderBase.java94 char[] buffer = new char[2 * binaryData.length];
96 for (int i=0; i < binaryData.length; i++) {
/glassfish-3.1.2/admin/jmx-remote/client/src/main/java/com/sun/enterprise/admin/jmx/remote/internal/
H A DShifter.java71 this.args = new Object[in.length];
72 System.arraycopy(in, 0, args, 0, in.length);
78 final Object[] tmp = new Object[args.length + 1];
80 for (int i = 0 ; i < args.length ; i++) {
87 if (args.length == 0)
90 final Object[] tmp = new Object[args.length - 1];
91 for (int i = 0 ; i < tmp.length ; i++) {
/glassfish-3.1.2/admin/jmx-remote/common/src/main/java/com/sun/enterprise/admin/jmx/remote/internal/
H A DShifter.java71 this.args = new Object[in.length];
72 System.arraycopy(in, 0, args, 0, in.length);
78 final Object[] tmp = new Object[args.length + 1];
80 for (int i = 0 ; i < args.length ; i++) {
87 if (args.length == 0)
90 final Object[] tmp = new Object[args.length - 1];
91 for (int i = 0 ; i < tmp.length ; i++) {
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/deploy/
H A DServletMap.java75 String[] results = new String[urlPatterns.length + 1];
76 System.arraycopy(urlPatterns, 0, results, 0, urlPatterns.length);
77 results[urlPatterns.length] = pattern;
H A DFilterMaps.java90 String[] results = new String[servletNames.length + 1];
91 System.arraycopy(servletNames, 0, results, 0, servletNames.length);
92 results[servletNames.length] = servletName;
101 String[] results = new String[urlPatterns.length + 1];
102 System.arraycopy(urlPatterns, 0, results, 0, urlPatterns.length);
103 results[urlPatterns.length] = urlPattern;
H A DSecurityCollection.java215 String results[] = new String[methods.length + 1];
216 for (int i = 0; i < methods.length; i++)
218 results[methods.length] = method;
231 String results[] = new String[methodOmissions.length + 1];
232 for (int i = 0; i < methodOmissions.length; i++)
234 results[methodOmissions.length] = methodOmission;
248 String results[] = new String[patterns.length + 1];
249 for (int i = 0; i < patterns.length; i++)
251 results[patterns.length] = pattern;
265 if (methods.length
[all...]
/glassfish-3.1.2/admin/server-mgmt/src/main/java/com/sun/enterprise/admin/servermgmt/
H A DStringValidator.java68 * validations such as 0 length.
74 int length = ((String)str).length();
75 if (length == 0)
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/web/util/
H A DCookieTokenizer.java74 int length = cookies.length();
77 while (index < length) {
83 if (tokens[numTokens].length() > 0) {
108 if (tokens[numTokens].length() > 0) {
129 int length = cookies.length();
131 while (index < length)
168 int length = cookies.length();
[all...]
/glassfish-3.1.2/admin/util/src/main/java/com/sun/enterprise/admin/util/
H A DRowFormatter.java56 numRows = headings.length;
69 if (objs.length != numRows) {
72 objs.length, numRows));
79 if (headings != null && headings[i].length() > longestValue) {
80 longestValue = headings[i].length();
H A DColumnFormatter.java56 numCols = headings.length;
66 if (values.length != numCols) {
68 Strings.get("column.internal", values.length, numCols));
71 numCols = values.length;
73 for (int i = 0; i < v.length; i++) {
86 for (int i = 0; i < v.length; i++) {
87 if (v[i].length() > longestValue[i]) {
88 longestValue[i] = v[i].length();
95 if (headings != null && headings[i].length() > longestValue[i]) {
96 longestValue[i] = headings[i].length();
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/org/glassfish/security/common/
H A DSSHA.java79 * @return Byte array of length 20 bytes containing hash result.
87 byte[] buff = new byte[password.length + salt.length];
88 System.arraycopy(password, 0, buff, 0, password.length);
89 System.arraycopy(salt, 0, buff, password.length, salt.length);
117 assert (hash.length == 20); // SHA output is 20 bytes
120 assert (hash.length == 32); //SHA-256 output is 32 bytes
133 * @return Byte array of length 20 bytes containing hash result.
166 assert (hash.length
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/ssi/
H A DExpressionTokenizer.java87 private int length; field in class:ExpressionTokenizer
95 this.length = this.expr.length;
103 return index < length;
127 while (index < length && Character.isWhitespace(expr[index]))
131 if (index == length) return TOKEN_END; // End of string
136 if (index < length) nextChar = expr[index];
188 for (; index < length; index++) {
200 for (; index < length; index++) {
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/
H A DStringEditDistance.java49 * The complexity is O(nm) where n=a.length() and m=b.length().
59 * @return null if group.length==0.
64 for (int i = 0; i < group.length; i++) {
87 cost = new int[a.length() + 1];
88 back = new int[a.length() + 1];
90 for (int i = 0; i <= a.length(); i++)
108 for (int j = 0; j < b.length(); j++) {
111 for (int i = 0; i < a.length(); i++) {
116 return cost[a.length()];
[all...]
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/deployer/
H A DGlobalResourceDeployer.java66 String[] result = new String[props.length];
67 for (int i = 0; i < props.length; i++) {
84 String[] result = new String[props.length];
85 for (int i = 0; i < props.length; i++) {
/glassfish-3.1.2/common/amx-core/src/main/java/org/glassfish/admin/amx/util/
H A DFileUtils.java69 final long length = src.length();
70 if (length > 1024 * 1024 * 1024)
77 final StringBuilder result = new StringBuilder((int) length);
/glassfish-3.1.2/persistence/cmp/enhancer/src/main/java/com/sun/jdo/api/persistence/enhancer/classfile/
H A DGenericAttribute.java68 out.writeInt(attributeBytes.length);
69 out.write(attributeBytes, 0, attributeBytes.length);
75 Integer.toString(attributeBytes.length) +
76 " in length");//NOI18N
77 for (int i=0; i<attributeBytes.length; i++) {
/glassfish-3.1.2/security/ssl-impl/src/main/java/com/sun/enterprise/security/ssl/manager/
H A DUnifiedX509KeyManager.java67 if (mgrs.length != tokenNames.length) {
78 for (int i = 0; i < mgrs.length; i++) {
90 for (int i = 0; i < mgrs.length; i++) {
101 for (int i = 0; i < mgrs.length; i++) {
112 for (int i = 0; i < mgrs.length; i++) {
114 if (clAliases != null && clAliases.length > 0) {
115 for (int j = 0; j < clAliases.length; j++) {
127 for (int i = 0; i < mgrs.length; i++) {
138 for (int i = 0; i < mgrs.length;
[all...]
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/appserv/web/cache/mapping/
H A DCacheMapping.java145 String results[] = new String[methods.length + 1];
146 for (int i = 0; i < methods.length; i++)
148 results[methods.length] = method;
160 Field results[] = new Field[keyFields.length + 1];
161 for (int i = 0; i < keyFields.length; i++)
163 results[keyFields.length] = field;
176 new ConstraintField[constraintFields.length + 1];
178 for (int i = 0; i < constraintFields.length; i++)
180 results[constraintFields.length] = field;
218 if (methods.length
[all...]
/glassfish-3.1.2/registration/registration-impl/src/main/java/com/sun/enterprise/registration/impl/environment/
H A DSolarisSystemEnvironment.java85 for (int i=0; i<lines.length; i++) {
88 return line.substring(line.indexOf(token) + token.length()).trim();
99 for (int i=0; i<lines.length; i++) {
102 return line.substring(line.indexOf(token) + token.length()).trim();
114 for (int i=0; i<lines.length; i++) {
132 for (int i=0; i<lines.length; i++) {
135 chipId = line.substring(line.indexOf(chipIdToken) + chipIdToken.length()).trim();
138 coreId = line.substring(line.indexOf(coreIdToken) + coreIdToken.length()).trim();
151 for (int i=0; i<lines.length; i++) {
154 line = line.substring(line.indexOf(token) + token.length())
[all...]
/glassfish-3.1.2/security/ejb.security/src/main/java/com/sun/enterprise/iiop/security/
H A DGSSUtils.java132 for( int i = 0; i < octets.length; i++ ) {
137 if( hex.length() == 1 ) {
169 _logger.log(Level.FINE,"Mech OID length = " + mechoidlen);
170 if (externalName.length < (4 + mechoidlen + 4))
192 if (externalName.length != (4 + mechoidlen + 4 + namelen))
195 byte[] name = new byte[externalName.length - pos];
196 System.arraycopy(externalName, pos, name, 0, externalName.length - pos);
226 _logger.log(Level.FINE,"Mech OID length = " + mechoidlen);
228 if (externalName.length < (4 + mechoidlen + 4))
254 * 2 mech OID length (le
480 getDERLengthSize(int length) argument
494 writeDERLength(byte [] token, int index, int length) argument
[all...]
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/annotation/introspection/
H A DConstantPoolInfo.java82 final short length = buffer.getShort();
83 if (length<0 || length>Short.MAX_VALUE) {
86 buffer.get(bytes, 0, length);
95 stringValue = new String(bytes, 0, length,"US-ASCII");
97 stringValue = new String(bytes, 0, length);
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/reflect/
H A DReflectUtils.java66 if (types1.length != types2.length) {
67 sb.append(Strings.get("parameter_number_mismatch", types1.length, types2.length));
70 for (int i = 0; i < types1.length; i++) {
78 if (sb.length() == 0)
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/tomcat/util/digester/
H A DSetPropertiesRule.java165 this.attributeNames = new String[attributeNames.length];
166 for (int i=0, size=attributeNames.length; i<size; i++) {
170 this.propertyNames = new String[propertyNames.length];
171 for (int i=0, size=propertyNames.length; i<size; i++) {
214 attNamesLength = attributeNames.length;
218 propNamesLength = propertyNames.length;
278 int length = attributeNames.length;
279 String [] tempAttributes = new String[length + 1];
280 for (int i=0; i<length;
[all...]

Completed in 135 milliseconds

1234567891011>>