Examples of available()


Examples of org.lealone.value.Transfer.available()

        if (transferList != null) {
            for (int i = 0; i < transferList.size(); i++) {
                Transfer transfer = transferList.get(i);

                try {
                    if (transfer.available() > 0)
                        throw DbException.throwInternalError("the transfer available bytes was " + transfer.available());
                } catch (IOException e) {
                    throw DbException.convert(e);
                }
            }
View Full Code Here

Examples of org.mozilla.interfaces.nsIInputStream.available()

                byte[] requestData = null;
                if( upload != null )
                {
                  nsIInputStream uploadStream = upload.getUploadStream();

                  if( uploadStream != null && uploadStream.available() > 0 )
                  {
                    nsISeekableStream seekable = ( nsISeekableStream )uploadStream
                        .queryInterface( nsISeekableStream.NS_ISEEKABLESTREAM_IID );

                    long pos = seekable.tell();
View Full Code Here

Examples of org.omg.CORBA.portable.InputStream.available()

    public void testLong () throws IOException
    {
        int pre = 123;
        os.write_long(pre);
        InputStream is = os.create_input_stream();
        assertTrue(is.available() > 0);
        int post = is.read_long();
        assertEquals(pre, post);
    }

    public void testString() throws IOException
View Full Code Here

Examples of org.teavm.classlib.impl.charset.CharBuffer.available()

        while (true) {
            if (inBuffer.end() && !fillReadBuffer()) {
                eof = true;
                break;
            }
            int oldAvail = newBuffer.available();
            charset.decode(inBuffer, newBuffer);
            if (oldAvail == newBuffer.available()) {
                break;
            }
        }
View Full Code Here

Examples of ru.vassaev.core.xml.FindStringStream.available()

      Object prev = null;
      Object o = null;
      try {
        while ((ch = isr.read()) != -1) {
          fss.write((char) ch);
          if (fss.available() > 0)
            while ((r = fss.readObject()) != null) {
              if (r instanceof Skipped) {
                if ((prev != null) && (prev instanceof Prm)) {
                  ((Prm) prev).name = r.toString();
                  try {
View Full Code Here

Examples of sun.security.util.DerInputStream.available()

        if ((val.data == null) || (val.data.available() == 0)) {
            return;
        }

        DerInputStream in = val.data;
        while (in != null && in.available() != 0) {
            DerValue opt = in.getDerValue();

            if (opt.isContextSpecific(TAG_DISTRIBUTION_POINT) &&
                opt.isConstructed()) {
                distributionPoint =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.