Examples of RuntimeIoException


Examples of com.slytechs.utils.event.RuntimeIOException

       */
      public boolean hasNext() {
        try {
          return i.hasNext();
        } catch (IOException e) {
          throw new RuntimeIOException(e);
        }
      }

      /* (non-Javadoc)
       * @see java.util.Iterator#next()
       */
      public ByteBuffer next() {
        try {
          return i.next();
        } catch (IOException e) {
          throw new RuntimeIOException(e);
        }
      }

      /* (non-Javadoc)
       * @see java.util.Iterator#remove()
       */
      public void remove() {
        try {
          i.remove();
        } catch (IOException e) {
          throw new RuntimeIOException(e);
        }
      }
     
    };
  }
View Full Code Here

Examples of com.xebialabs.overthere.RuntimeIOException

     * @param dirDescription to prepend to error message.
     * @throws RuntimeIOException if file is not a directory.
     */
    private static void checkReallyIsADirectory(OverthereFile dir, String dirDescription) {
        if (dir.exists() && !dir.isDirectory()) {
            throw new RuntimeIOException(dirDescription + " directory " + dir + " exists but is not a directory");
        }
    }
View Full Code Here

Examples of edu.stanford.nlp.io.RuntimeIOException

            tree.add(head, depType);
          else
            tree.add(head, Config.UNKNOWN);
        }
      }    } catch (IOException e) {
      throw new RuntimeIOException(e);
    } finally {
      IOUtils.closeIgnoringExceptions(reader);
    }
  }
View Full Code Here

Examples of htsjdk.samtools.util.RuntimeIOException

                IOUtil.assertFileIsWritable(soleInput);
                IOUtil.assertDirectoryIsWritable(dir);
                OUTPUT = File.createTempFile(soleInput.getName() + ".being_fixed.", BamFileIoUtils.BAM_FILE_EXTENSION, dir);
            }
            catch (final IOException ioe) {
                throw new RuntimeIOException("Could not create tmp file in " + dir.getAbsolutePath());
            }
        }

        // Get the input records merged and sorted by query name as needed
        final PeekableIterator<SAMRecord> iterator;
View Full Code Here

Examples of mungbean.protocol.RuntimeIOException

            if (ret != -1) {
                md5.update(buffer, 0, ret);
            }
            return ret;
        } catch (IOException e) {
            throw new RuntimeIOException(e);
        }
    }
View Full Code Here

Examples of net.sf.samtools.util.RuntimeIOException

                throw new SAMFormatException("Unrecognized file format: " + strm);
            }
            setValidationStringency(validationStringency);
        }
        catch (IOException e) {
            throw new RuntimeIOException(e);
        }
    }
View Full Code Here

Examples of org.apache.mina.common.RuntimeIOException

        ServerSocket s = null;
        try {
            s = new ServerSocket();
            reuseAddress = s.getReuseAddress();
        } catch (IOException e) {
            throw new RuntimeIOException(
                    "Failed to get the default configuration.", e);
        } finally {
            if (s != null) {
                try {
                    s.close();
View Full Code Here

Examples of org.apache.mina.common.RuntimeIOException

        @Override
        public int getReceiveBufferSize() {
            try {
                return ch.socket().getReceiveBufferSize();
            } catch (SocketException e) {
                throw new RuntimeIOException(e);
            }
        }
View Full Code Here

Examples of org.apache.mina.common.RuntimeIOException

                    ch.socket().setReceiveBufferSize(receiveBufferSize);
                    // Re-retrieve the effective receive buffer size.
                    receiveBufferSize = ch.socket().getReceiveBufferSize();
                    DatagramSessionImpl.this.readBufferSize = receiveBufferSize;
                } catch (SocketException e) {
                    throw new RuntimeIOException(e);
                }
            }
        }
View Full Code Here

Examples of org.apache.mina.common.RuntimeIOException

        @Override
        public boolean isBroadcast() {
            try {
                return ch.socket().getBroadcast();
            } catch (SocketException e) {
                throw new RuntimeIOException(e);
            }
        }
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.