Searched defs:len (Results 1 - 25 of 976) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/sun/security/rsa/
H A DTestKeyPairGeneratorLength.java42 private static void test(int len) throws Exception { argument
44 kpg.initialize(len);
46 System.out.println("Generating keypair " + len + " bit keypair " + (i + 1) + "...");
50 if (k != len) {
/openjdk7/jdk/src/windows/native/sun/security/krb5/
H A DWindowsDirectory.c39 UINT len; local
41 len = GetSystemWindowsDirectory(lpPath, MAX_PATH);
43 len = GetWindowsDirectory(lpPath, MAX_PATH);
45 if (len) {
46 return (*env)->NewString(env, lpPath, len);
/openjdk7/jdk/test/java/io/BufferedInputStream/
H A DReadZeroBytes.java52 public int read(byte[] b, int off, int len) throws IOException { argument
53 throw new RuntimeException("Read invoked for len == 0");
/openjdk7/jdk/test/java/io/ByteArrayOutputStream/
H A DWriteBounds.java34 private static void dotest(byte[] b, int off, int len, argument
41 b.length + " off = " + off + " len = " + len);
45 off + " len = " + len);
49 baos.write(b, off, len);
/openjdk7/jdk/test/java/nio/charset/coders/
H A DFullRead.java39 static void test(File f, int len) throws Exception { argument
41 for (int i = 0; i < len; i++)
49 System.out.println(len + " : " + n);
50 if (len != n)
51 throw new Exception("Expected " + len + ", read " + n);
/openjdk7/jdk/test/sun/security/provider/DSA/
H A DTestKeyPairGenerator.java41 private static void checkKeyLength(KeyPair kp, int len) throws Exception { argument
45 if (len != n) {
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DBRView.java50 public int getBreakWeight(int axis, float pos, float len) { argument
54 return super.getBreakWeight(axis, pos, len);
/openjdk7/jdk/src/share/classes/java/io/
H A DFilterOutputStream.java101 * Writes <code>len</code> bytes from the specified
116 * @param len the number of bytes to write.
120 public void write(byte b[], int off, int len) throws IOException { argument
121 if ((off | len | (b.length - (len + off)) | (off + len)) < 0)
124 for (int i = 0 ; i < len ; i++) {
H A DOptionalDataException.java55 OptionalDataException(int len) { argument
57 length = len;
H A DOutputStream.java79 * Writes <code>len</code> bytes from the specified byte array
81 * The general contract for <code>write(b, off, len)</code> is that
84 * byte written and <code>b[off+len-1]</code> is the last byte written
95 * If <code>off</code> is negative, or <code>len</code> is negative, or
96 * <code>off+len</code> is greater than the length of the array
101 * @param len the number of bytes to write.
106 public void write(byte b[], int off, int len) throws IOException { argument
109 } else if ((off < 0) || (off > b.length) || (len < 0) ||
110 ((off + len) > b.length) || ((off + len) <
[all...]
/openjdk7/jdk/src/share/classes/java/util/zip/
H A DChecksum.java46 * @param len the number of bytes to use for the update
48 public void update(byte[] b, int off, int len); argument
/openjdk7/jdk/src/share/classes/javax/crypto/spec/
H A DIvParameterSpec.java57 * Creates an IvParameterSpec object using the first <code>len</code>
62 * <code>iv[offset]</code> and <code>iv[offset+len-1]</code> inclusive.
64 * @param iv the buffer with the IV. The first <code>len</code>
69 * @param len the number of IV bytes.
71 * or <code>(iv.length - offset < len)</code>
73 * or <code>len</code> index bytes outside the <code>iv</code>.
75 public IvParameterSpec(byte[] iv, int offset, int len) { argument
79 if (iv.length - offset < len) {
83 if (len < 0) {
84 throw new ArrayIndexOutOfBoundsException("len i
[all...]
/openjdk7/hotspot/src/share/vm/ci/
H A DciObjArray.hpp42 ciObjArray(ciKlass* klass, int len) : ciArray(klass, len) {} argument
H A DciTypeArray.hpp42 ciTypeArray(ciKlass* klass, int len) : ciArray(klass, len) {} argument
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DModelChannelMixer.java45 public boolean process(float[][] buffer, int offset, int len); argument
/openjdk7/hotspot/src/os/bsd/vm/
H A Djvm_bsd.cpp184 extern bool signal_name(int signo, char* buf, size_t len) { argument
187 jio_snprintf(buf, len, "SIG%s", siglabels[i].name);
/openjdk7/hotspot/src/os/linux/vm/
H A Djvm_linux.cpp191 extern bool signal_name(int signo, char* buf, size_t len) { argument
194 jio_snprintf(buf, len, "SIG%s", siglabels[i].name);
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DTestUtility.java68 public static boolean equalsBlock(byte[] b1, byte[] b2, int len) { argument
70 for (int i=0; i<len; i++) {
/openjdk7/jdk/test/java/io/Serializable/readPastObject/
H A DReadPastObject.java53 public int read(byte[] b, int off, int len) { argument
54 if (limit < len)
56 int n = super.read(b, off, len);
/openjdk7/jdk/test/java/io/charStreams/
H A DABCOutputStream.java31 int len; field in class:ABCOutputStream
35 ABCOutputStream(int len) { argument
36 this.len = len;
40 if (count >= len)
50 public void write(byte buf[], int off, int len) throws IOException { argument
51 for (int i = off; i < off + len; i++)
56 if (len == 0)
58 else if (count < len)
60 len
[all...]
H A DABCReader.java31 int len; field in class:ABCReader
35 ABCReader(int len) { argument
36 this.len = len;
40 if (count >= len)
53 public int read(char cbuf[], int off, int len) { argument
54 for (int i = off; i < off + len; i++) {
64 return len;
68 len = 0;
H A DWriteLengths.java40 static void go(int len, String enc) throws Exception { argument
43 char[] cs = new char[len];
47 if (ba.length != len) {
48 log.println("FAIL: Wrote " + len + ", got " + ba.length
/openjdk7/jdk/test/java/io/readBytes/
H A DReadBytesBounds.java34 * The test calls the read(byte buf[] , int off , int len) of
35 * FileInputStream with different values of off and len to see if the
84 static void testRead(int off, int len, boolean expected) throws Throwable { argument
85 System.err.printf("off=%d len=%d expected=%b%n", off, len, expected);
88 fis.read(b, off, len);
89 raf.read(b, off, len);
97 (String.format("Unexpected result off=%d len=%d expected=%b",
98 off, len, expected));
/openjdk7/jdk/test/java/nio/file/Files/
H A DNameLimits.java41 static Path generatePath(int len) { argument
42 if (len < MIN_PATH)
44 StringBuilder sb = new StringBuilder(len);
46 while (sb.length() < len) {
52 static boolean tryCreateFile(int len) throws IOException { argument
53 Path name = generatePath(len);
65 static boolean tryCreateDirectory(int len) throws IOException { argument
66 Path name = generatePath(len);
79 int len;
82 len
[all...]
/openjdk7/jdk/test/sun/security/util/DerValue/
H A DBadValue.java109 public int read(byte b[], int off, int len) throws IOException { argument
110 if (len == 0) return 0;

Completed in 131 milliseconds

1234567891011>>