Package org.nutz.lang.stream

Examples of org.nutz.lang.stream.NullInputStream


  public static Writer utf8w(OutputStream os) {
    return new OutputStreamWriter(os, Encoding.CHARSET_UTF8);
  }

  public static InputStream nullInputStream() {
    return new NullInputStream();
  }
View Full Code Here


    public static Writer utf8w(OutputStream os) {
        return new OutputStreamWriter(os, Encoding.CHARSET_UTF8);
    }

    public static InputStream nullInputStream() {
        return new NullInputStream();
    }
View Full Code Here

            else {
                try {
                    rep.setStream(conn.getInputStream());
                }
                catch (IOException e) {
                    rep.setStream(new NullInputStream());
                }
            }
        }
        return rep;
    }
View Full Code Here

            else {
                try {
                    rep.setStream(conn.getInputStream());
                }
                catch (IOException e) {
                    rep.setStream(new NullInputStream());
                }
            }
        }
        return rep;
    }
View Full Code Here

    public static Writer utf8w(OutputStream os) {
        return new OutputStreamWriter(os, Encoding.CHARSET_UTF8);
    }

    public static InputStream nullInputStream() {
        return new NullInputStream();
    }
View Full Code Here

    SocialAuthConfig config = new SocialAuthConfig();
    File devConfig = Files.findFile("oauth_consumer.properties_dev"); //开发期所使用的配置文件
    if (devConfig == null)
      devConfig = Files.findFile("oauth_consumer.properties"); //真实环境所使用的配置文件
    if (devConfig == null)
      config.load(new NullInputStream());
    else
      config.load(new FileInputStream(devConfig));
    this.config = config;
  }
View Full Code Here

TOP

Related Classes of org.nutz.lang.stream.NullInputStream

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.