Examples of readLine()


Examples of com.google.opengse.iobuffer.IOBufferLineReader.readLine()

      IOBuffer buf)
      throws IOException {
    if (parsing_http_) {
      LineReader reader = new IOBufferLineReader(buf, baos, READLINE_LIMIT);
      String line;
      while ((line = reader.readLine()) != null) {
        parser.parse(line, this);
        if (requestMethod == null) {
          // if no method was specified on the request line, check to
          // see if the line is entirely whitespace, in which case we
          // just ignore it.
View Full Code Here

Examples of com.googlecode.psiprobe.tools.BackwardsLineReader.readLine()

            try {
                BackwardsLineReader br = new BackwardsLineReader(bfs);
                long readSize = 0;
                long totalReadSize = currentLength - lastKnownLength;
                String s;
                while (readSize < totalReadSize && (s = br.readLine()) != null) {
                    if (!s.equals("")){
                        lines.addFirst(s);
                        readSize += s.length();
                    } else {
                        readSize++;
View Full Code Here

Examples of com.itextpdf.text.pdf.PdfReader.readLine()

            FileInputStream in = new FileInputStream(info);

            BufferedReader reader = new BufferedReader(new InputStreamReader(in, "UTF-8"));

            try {
                pageCount = Integer.parseInt(reader.readLine());
            } catch (Exception e) {
            } finally {
                reader.close();
                in.close();
            }
View Full Code Here

Examples of com.liferay.portal.kernel.io.unsync.UnsyncBufferedReader.readLine()

        UnsyncBufferedReader unsyncBufferedReader = new UnsyncBufferedReader(
                new FileReader(sqlFile));

        while (true) {
            String indexSQL = unsyncBufferedReader.readLine();

            if (indexSQL == null) {
                break;
            }
View Full Code Here

Examples of com.oracle.truffle.r.runtime.RContext.ConsoleHandler.readLine()

            ch.printf("Called from: %s%n", callerEnv == REnvironment.globalEnv() ? "top level" : RArguments.getFunction(frame).getTarget());
            String savedPrompt = ch.getPrompt();
            ch.setPrompt(browserPrompt());
            try {
                LW: while (true) {
                    String input = ch.readLine();
                    if (input.length() == 0) {
                        RLogicalVector browserNLdisabledVec = (RLogicalVector) ROptions.getValue("browserNLdisabled");
                        if (!RRuntime.fromLogical(browserNLdisabledVec.getDataAt(0))) {
                            break;
                        }
View Full Code Here

Examples of com.orientechnologies.common.console.DefaultConsoleReader.readLine()

      System.out.println("| 'root' user or leave it blank to auto-generate it. |");
      System.out.println("+----------------------------------------------------+");
      System.out.print("\nRoot password [BLANK=auto generate it]: ");

      OConsoleReader reader = new DefaultConsoleReader();
      rootPassword = reader.readLine();
      if (rootPassword != null) {
        rootPassword = rootPassword.trim();
        if (rootPassword.isEmpty())
          rootPassword = null;
      }
View Full Code Here

Examples of com.orientechnologies.common.console.OConsoleReader.readLine()

      System.out.println("| 'root' user or leave it blank to auto-generate it. |");
      System.out.println("+----------------------------------------------------+");
      System.out.print("\nRoot password [BLANK=auto generate it]: ");

      OConsoleReader reader = new DefaultConsoleReader();
      rootPassword = reader.readLine();
      if (rootPassword != null) {
        rootPassword = rootPassword.trim();
        if (rootPassword.isEmpty())
          rootPassword = null;
      }
View Full Code Here

Examples of com.peterhi.obsolete.Stream.readLine()

 
  @Test
  public void fReadLine_void() throws Exception {
    try {
      Stream stream = new Stream();
      stream.readLine();
      fail();
    } catch (EOFException ex) {
    }
   
    try {
View Full Code Here

Examples of com.stuffwithstuff.magpie.util.FileReader.readLine()

       "the end of the file.")
  public static class ReadLine implements Intrinsic {
    public Obj invoke(Context context, Obj left, Obj right) {
      FileReader reader = (FileReader)left.getValue();
      try {
        String line = reader.readLine();
        if (line == null) return context.nothing();
        return context.toObj(line);
      } catch (IOException e) {
        throw context.error("IOError", "Could not read.");
      }
View Full Code Here

Examples of com.sun.appserv.management.util.misc.LineReaderImpl.readLine()

    final LineReaderImpl  reader  = new LineReaderImpl( System.in );
   
    final String prompt  = c.toString() +
      "\n\nAdd the above certificate to the truststore [y/n]?";
     
    final String result  = reader.readLine( prompt );
   
    return( result.equalsIgnoreCase( "y" ) || result.equalsIgnoreCase( "yes" ) );
  }
 
  /**
 
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.