Searched refs:available (Results 1 - 25 of 369) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/java/io/LineNumberInputStream/
H A DAvailable.java26 @summary Check for correct implementation of LineNumberInputStream.available
42 check(in.available(), 5);
45 check(in.available(), 4);
49 check(in.available(), 2);
65 public int available() { method in class:MyInStream
/openjdk7/jdk/test/java/lang/System/
H A DAvailable.java25 * This class tests to see if System.in.available starts
30 * @summary Test for System.in.available
35 int bytesAvailable = System.in.available();
37 throw new RuntimeException("System.in.available returned non-zero");
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DCipherInputStream.java47 * <code>skip</code> method skips, and the <code>available</code>
161 * <code>0</code> to <code>255</code>. If no byte is available
164 * is available, the end of the stream is detected, or an exception
206 * available. If the first argument is <code>null,</code> up to
230 int available = ofinish - ostart;
231 if (len < available) available = len;
233 System.arraycopy(obuffer, ostart, b, off, available);
235 ostart = ostart + available;
236 return available;
280 public int available() throws IOException { method in class:CipherInputStream
[all...]
/openjdk7/jdk/test/sun/net/www/http/HttpClient/
H A DIsAvailable.java27 * @summary HttpClient available() check throws SocketException when connection
46 Method available = HttpClient.class.
47 getDeclaredMethod("available", null);
48 available.setAccessible(true);
51 boolean a = (boolean) available.invoke(c1);
53 throw new RuntimeException("connection should be available");
61 a = (boolean) available.invoke(c1);
63 throw new RuntimeException("connection shouldn't be available");
/openjdk7/jdk/test/sun/net/www/protocol/jar/jarbug/src/jar1/
H A DGetResource.java35 in.available();
H A DLoadResourceBundle.java36 in.available();
/openjdk7/jdk/test/javax/sound/midi/Gervill/ModelByteBuffer/RandomFileInputStream/
H A DSkip.java89 int ret = is.available();
93 if(is.available() != ret - n)
95 "is.available() returns incorrect value ("
96 + is.available() + "!="+(ret - n)+") !");
98 ret = is.available();
102 if(is.available() != ret - n)
104 "is.available() returns incorrect value ("
105 + is.available() + "!="+(ret - n)+") !");
107 ret = is.available();
109 if(is.available() !
[all...]
H A DMarkReset.java90 int ret = is.available();
94 if(is.available() != ret)
96 "is.available() returns incorrect value ("
97 + is.available() + "!="+(ret)+") !");
105 ret = is.available();
108 if(is.available() != ret)
110 "is.available() returns incorrect value ("
111 + is.available() + "!="+(ret)+") !");
/openjdk7/jdk/src/windows/native/sun/windows/
H A Dawt_GDIObject.cpp108 BOOL available; local
112 available = TRUE;
121 available = TRUE;
124 available = FALSE;
128 return available;
/openjdk7/jdk/test/java/util/zip/
H A DAvailable.java26 @summary Make sure ZipInputStream/InflaterInputStream.available() will
65 if (in.available() != 0) {
66 throw new Exception("available should return 0 after EOF");
76 int initialAvailable = in.available();
78 if (in.available() != initialAvailable - 1)
82 if (in.available() != 0)
85 if (in.available() != 0)
/openjdk7/jdk/test/java/nio/charset/spi/
H A DTest.java32 private static final SortedMap available = Charset.availableCharsets(); field in class:Test
46 if (!available.containsKey(cs.name()))
47 fail(csn, "Not in available charsets: " + available.keySet());
48 if (!((Charset)available.get(cs.name())).equals(cs))
60 if (available.containsKey(csn))
77 for (Iterator i = available.keySet().iterator(); i.hasNext();)
/openjdk7/jdk/src/share/classes/java/io/
H A DObjectInput.java55 * available.
64 * block until some input is available.
74 * block until some input is available.
95 * @return the number of available bytes.
98 public int available() throws IOException; method in interface:ObjectInput
H A DPipedInputStream.java99 * to <code>src</code> will then be available
115 * be available as input from this stream.
194 * available.
218 * block until some input is available.
294 * This method blocks until input data is available, the end of the
351 * available, end of the stream has been detected, or an exception is
386 int available;
389 available = Math.min((buffer.length - out), (in - out));
391 available = buffer.length - out;
395 if (available > (le
427 public synchronized int available() throws IOException { method in class:PipedInputStream
[all...]
H A DFilterInputStream.java68 * <code>0</code> to <code>255</code>. If no byte is available
71 * is available, the end of the stream is detected, or an exception
89 * input is available.
113 * blocks until some input is available; otherwise, no
161 * This method returns the result of {@link #in in}.available().
167 public int available() throws IOException { method in class:FilterInputStream
168 return in.available();
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DEncryptedPrivateKeyInfo.java67 if (val.data.available() != 0) {
68 throw new IOException("overrun, bytes = " + val.data.available());
72 if (seq[0].data.available() != 0) {
77 if (seq[1].data.available() != 0)
/openjdk7/jdk/test/java/io/DataInputStream/
H A DReadLinePushback.java43 int count = pis.available();
46 throw new Exception ("Test failed: available() returns "
/openjdk7/jdk/test/java/io/FileInputStream/
H A DAvailable.java27 * @summary Test if available would throw an IOException
40 fis.available();
42 ("available should throw an exception after stream is closed");
/openjdk7/jdk/test/java/io/
H A DSystemInAvailable.java26 @summary Make sure that System.in.available() works
42 int a = System.in.available();
43 if (a != 0) throw new Exception("System.in.available() ==> " + a);
/openjdk7/jdk/test/sun/security/util/DerValue/
H A DBadValue.java43 if (bs.length != 4 || in.available() != 6) {
48 if (bs.length != 6 || in.available() != 0) {
54 if (bs.length != 10 || in.available() != 0) {
60 if (bs.length != 10 || in.available() != 0) {
H A DEmptyValue.java40 if (v.data.available() != 0) {
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DAppInputStream.java58 public int available() throws IOException { method in class:AppInputStream
62 return r.available();
101 while (r.available() == 0) {
108 int howmany = Math.min(len, r.available());
/openjdk7/jdk/test/java/util/zip/ZipFile/
H A DAvailable.java33 if (e.getSize() != zf.getInputStream(e).available()) {
34 throw new Exception("wrong return value of available");
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/utils/
H A DFastStringBuffer.java38 * exceeds the space available; we just allocate another chunk and
318 * greater than the amount of storage currently available... and even
492 int available = m_chunkSize - m_firstFree;
499 if (available > strlen)
500 available = strlen;
502 value.getChars(copyfrom, copyfrom + available, m_array[m_lastChunk],
505 strlen -= available;
506 copyfrom += available;
544 available = m_chunkSize;
550 m_firstFree += available;
[all...]
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DSemaphore.java26 * This file is available under and governed by the GNU General Public
44 * available, and then takes it. Each {@link #release} adds a permit,
47 * keeps a count of the number available and acts accordingly.
55 * private final Semaphore available = new Semaphore(MAX_AVAILABLE, true);
58 * available.acquire();
64 * available.release();
99 * the semaphore, guaranteeing that an item is available for use. When
110 * only has at most one permit available, can serve as a mutual
113 * available, or zero permits available
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DSplashScreen.java156 // check for available data
157 int available = stream.available();
158 if (available <= 0) {
159 // no data available... well, let's try reading one byte
161 available = 1;
165 if (off + available > length) {
167 if (off + available > length) {
168 length = available+off;
175 int result = stream.read(buf, off, available);
[all...]

Completed in 93 milliseconds

1234567891011>>