Examples of openRead()


Examples of com.caucho.vfs.Path.openRead()

      DefaultHandler base = (DefaultHandler) objBase;
      if (obj instanceof InputStream)
        parser.parse((InputStream) obj, base);
      else if (obj instanceof Path) {
        Path path = (Path) obj;
        ReadStream is = path.openRead();
        try {
          parser.parse(is, base);
        } finally {
          is.close();
        }
View Full Code Here

Examples of com.caucho.vfs.Path.openRead()

   
    if (obj instanceof InputStream)
      return parser.parse((InputStream) obj, systemId);
    else if (obj instanceof Path) {
      Path path = (Path) obj;
      ReadStream is = path.openRead();
      try {
        return parser.parse(is);
      } finally {
        is.close();
      }
View Full Code Here

Examples of com.caucho.vfs.Path.openRead()

      log.fine(this + " parsing " + persistenceXml.getURL());

    InputStream is = null;

    try {
      is = persistenceXml.openRead();

      ConfigPersistence persistence = new ConfigPersistence(root);

      new Config().configure(persistence, is,
          "com/caucho/amber/cfg/persistence-31.rnc");
View Full Code Here

Examples of com.caucho.vfs.Path.openRead()

      return generate(new QDocument(), null);

    Path path = getSearchPath().lookup(systemId);
   
    try {
      ReadStream is = path.openRead();
      Document doc;
      try {
  doc = parseXSL(is);
      } finally {
  is.close();
View Full Code Here

Examples of com.caucho.vfs.Path.openRead()

      return getSearchPath().lookup(href).openRead();
    else {
      Path path = getSearchPath().lookup(base).getParent().lookup(href);

      if (path.exists())
        return path.openRead();
      else
        return getSearchPath().lookup(href).openRead();
    }
  }
View Full Code Here

Examples of com.caucho.vfs.Path.openRead()

      return null; //throw new SQLException(L.l("table {0} does not exist", name));
    }

    String version = null;

    ReadStream is = path.openRead();
    try {
      // skip allocation table and fragment table
      is.skip(DATA_START + ROOT_DATA_OFFSET);

      StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of com.caucho.vfs.Path.openRead()

      }
    } finally {
      is.close();
    }

    is = path.openRead();
    try {
      // skip allocation table and fragment table
      is.skip(DATA_START + ROOT_DATA_END);

      StringBuilder cb = new StringBuilder();
View Full Code Here

Examples of com.caucho.vfs.Path.openRead()

        env.warning(L.l("Cannot read file/URL '{0}'", data));

        return null;
      }

      ReadStream is = path.openRead();

      try {
        document = builder.parse(is);
      } finally {
        is.close();
View Full Code Here

Examples of com.caucho.vfs.Path.openRead()

        return font;

      Path path = env.lookupPwd(fontPath);

      if (path.canRead()) {
        ReadStream is = path.openRead();

        try {
          font = Font.createFont(Font.TRUETYPE_FONT, is);
        } finally {
          is.close();
View Full Code Here

Examples of com.caucho.vfs.Path.openRead()

          start = len;
        }

        if (path.canRead()) {
          ReadStream is = path.openRead();

          try {
            font = Font.createFont(Font.TRUETYPE_FONT, is);
          } finally {
            is.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.