Package net.sf.nic

Examples of net.sf.nic.SourceStreamFactory


  private File file;
  private String type, uri, platforms, locales;
  private List<PropertyType> properties = new ArrayList<PropertyType>();

  public void apply(NicProject project) throws BuildException {
    SourceStreamFactory ssf = SourceStreamFactory.getInstance(type);
    if (ssf == null)
      throw new BuildException("The type '" + type + "' is not a known source stream type.");

    if (file != null && file.isDirectory())
      uri = file.toURI().toString();

    if (uri != null) {
      SourceStream stream = ssf.newSourceStream(URI.create(uri));
      if (stream == null)
        throw new BuildException("The URI '" + uri + "' is not supported by the stream factory of type '" +
          type + "'.");

      if (stream instanceof AbstractIncludableSource)
View Full Code Here

TOP

Related Classes of net.sf.nic.SourceStreamFactory

Copyright © 2018 www.massapicom. 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.