Examples of readLine()


Examples of edu.umd.cloud9.io.FSLineReader.readLine()

        LOG.info("processing " + fileStats[i].getPath());
        FSLineReader reader = new FSLineReader(fileStats[i].getPath(), fs);

        Text line = new Text();
        while (reader.readLine(line) > 0) {
          String[] arr = line.toString().split("\\t+", 2);

          int docno = Integer.parseInt(arr[0]);
          int len = Integer.parseInt(arr[1]);
View Full Code Here

Examples of eu.stratosphere.runtime.fs.LineReader.readLine()

      final FSDataInputStream fdis = fs.open(split.getPath());

      final LineReader lineReader = new LineReader(fdis, start, length, (1024 * 1024));

      byte[] line = lineReader.readLine();

      while (line != null) {

        // Create a string object from the data read
        StringRecord str = new StringRecord();
View Full Code Here

Examples of flanagan.io.FileInput.readLine()

        fout.println();
        FileInput fin = new FileInput("ImmunoAssayTemp.txt");
        int n = fin.numberOfLines();
        String line = null;
        for(int i=0; i<n; i++){
            line = fin.readLine();
            fout.println(line);
        }
        fin.close();
        fout.println();
        fout.println("End of file");
View Full Code Here

Examples of freenet.support.io.LineReadingInputStream.readLine()

        handler.outputHandler.queue(msg);
        Closer.close(is);
        return;
      }
      // Read a message
      String messageType = lis.readLine(128, 128, true);
      if(messageType == null) {
        Closer.close(is);
        return;
      }
      if(messageType.equals(""))
View Full Code Here

Examples of gate.util.BomStrippingInputStreamReader.readLine()

    }
    BufferedReader defReader =
      new BomStrippingInputStreamReader((configFileURL).openStream(), encoding);
    String line;
    //logger.info("Loading data");
    while (null != (line = defReader.readLine())) {
       String[] fields = line.split(":");
       if(fields.length == 0) {
         System.err.println("Empty line in file "+configFileURL);
       } else {
         String listFileName = "";
View Full Code Here

Examples of gnu.java.net.LineInputStream.readLine()

    String name = null;
    StringBuilder value = new StringBuilder();
    while (true)
      {
        String line = lin.readLine();
        if (line == null)
          {
            if (name != null)
              {
                addValue(name, value.toString());
View Full Code Here

Examples of htsjdk.samtools.util.BufferedLineReader.readLine()

            final File libraryParams = new File(outputDir, libraryParamsFile);
            libraryParams.deleteOnExit();
            final List<File> outputPrefixes = new ArrayList<File>();
            final LineReader reader = new BufferedLineReader(new FileInputStream(new File(testDataDir, libraryParamsFile)));
            final PrintWriter writer = new PrintWriter(libraryParams);
            final String header = reader.readLine();
            writer.println(header + "\tOUTPUT_PREFIX");
            while (true) {
                final String line = reader.readLine();
                if (line == null) {
                    break;
View Full Code Here

Examples of htsjdk.samtools.util.LineReader.readLine()

            final File libraryParams = new File(outputDir, libraryParamsFile);
            libraryParams.deleteOnExit();
            final List<File> outputPrefixes = new ArrayList<File>();
            final LineReader reader = new BufferedLineReader(new FileInputStream(new File(testDataDir, libraryParamsFile)));
            final PrintWriter writer = new PrintWriter(libraryParams);
            final String header = reader.readLine();
            writer.println(header + "\tOUTPUT_PREFIX");
            while (true) {
                final String line = reader.readLine();
                if (line == null) {
                    break;
View Full Code Here

Examples of htsjdk.tribble.readers.AsciiLineReader.readLine()

     * @throws IOException
     */
    public static int getBytesAtEnd(String filePath) throws IOException {
        InputStream is = new FileInputStream(filePath);
        AsciiLineReader reader = new AsciiLineReader(is);
        String line = reader.readLine();
        int bytesThisLine = (int) reader.getPosition();

        reader.close();

        return bytesThisLine - line.length();
View Full Code Here

Examples of io.ADXTextFile.readLine()

    String[] split;
    int layer;
    int index = 0;
    int assetCode = 0;
    Asset asset = null;
    while ((line = file.readLine()) != null) {
      index = 0;
      split = line.split(";");
      layer = Integer.parseInt(split[index++]);
      while (index < split.length) {
        assetCode = Integer.parseInt(split[index++]);
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.