Package com.caucho.vfs

Examples of com.caucho.vfs.ReadStream.readLine()


    try {
      is = url.openStream();

      ReadStream in = Vfs.openRead(is);
      String line;
      while ((line = in.readLine()) != null) {
        line = line.trim();

        if (! "".equals(line) && ! line.startsWith("#")) {
          return Class.forName(line, false, loader);
        }
View Full Code Here


    try {
      is = serviceURL.openStream();

      ReadStream in = Vfs.openRead(is);
      String line;
      while ((line = in.readLine()) != null) {
  int p = line.indexOf('#');
  if (p >= 0)
    line = line.substring(p);

  line = line.trim();
View Full Code Here

          is = url.openStream();
          ReadStream in = Vfs.openRead(is);

          String line;

          while ((line = in.readLine()) != null) {
            int p = line.indexOf('#');
            if (p >= 0)
              line = line.substring(0, p);
            line = line.trim();
View Full Code Here

    if (dependPath.canRead()) {
      ReadStream is = null;
      try {
        is = dependPath.openRead();

        String line = is.readLine();

        long digest;

        if (line != null) {
          digest = Long.parseLong(line.trim());
View Full Code Here

      StringBuilder sb = new StringBuilder("\n\n");

      is = path.openRead();
      int line = 0;
      String text;
      while ((text = is.readLine()) != null) {
  line++;

  if (errorLine - 2 <= line && line <= errorLine + 2) {
    sb.append(line);
    sb.append(": ");
View Full Code Here

          is = url.openStream();
          ReadStream in = Vfs.openRead(is);

          String line;

          while ((line = in.readLine()) != null) {
            int p = line.indexOf('#');
            if (p >= 0)
              line = line.substring(0, p);
            line = line.trim();
View Full Code Here

      if (! "200".equals(code)) {
  CharBuffer sb = new CharBuffer();

  int count = 1024;

  while (is.readLine(sb, false) && count-- >= 0) {
  }

  throw new HessianProtocolException(code + ": " + sb);
      }
View Full Code Here

  lines.append("\n");

  try {
    for (int i = 1; i < _line + 3; i++) {
      String line = is.readLine();

      if (line == null)
        break;
   
      if (_line - 3 < i && i < _line + 3) {
View Full Code Here

    try {
      is = Vfs.lookup().lookup(systemId).openRead();
      int line = 0;
      StringBuilder sb = new StringBuilder("\n\n");
      String text;
      while ((text = is.readLine()) != null) {
        line++;

        if (errorLine - 2 <= line && line <= errorLine + 2) {
          sb.append(line);
          sb.append(": ");
View Full Code Here

   */
  public boolean isNeedUpdate()
  {
    try {
      ReadStream rs = _timestampFile.openRead();
      String lms = rs.readLine();
      long crc = Long.parseLong(lms);
      lms = rs.readLine();
      long tsfiles = Long.parseLong(lms);
      rs.close();

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.