Package anvil.core.io

Examples of anvil.core.io.AnyInputStream


  /// @synopsis InputStream getInput()
  /// @throws IOError If an IO error occured
  public Any m_getInput(Context context)
  {
    try {
      return new AnyInputStream(_socket.getInputStream());
    } catch (IOException e) {
      throw context.exception(e);
    }
  }
View Full Code Here


  /// @return InputStream containing directory list
  /// @throws IOError If operation failed
  public Any m_list(Context context)
  {
    try {
      return new AnyInputStream(_client.list());
    } catch (IOException e) {
      throw context.exception(e);
    }
  }
View Full Code Here

  /// @throws IOError if error occurred
  public static final Object[] p_get = { null, "filename" };
  public Any m_get(Context context, String filename)
  {
    try {
      return new AnyInputStream(_client.get(filename));
    } catch (IOException e) {
      throw context.exception(e);
    }
  }
View Full Code Here

  /// @synopsis InputStream getInput()
  /// @throws IOError If an IO error occured
  public Any m_getInput(Context context)
  {
    try {
      return new AnyInputStream(_connection.getInputStream());
    } catch (IOException e) {
      throw context.exception(e);
    }
  }
View Full Code Here

  /// data nonetheless.
  /// @synopsis InputStream getError()
  public Any m_getError(Context context)
  {
    if (_httpConnection != null) {
      return new AnyInputStream(_httpConnection.getErrorStream());
    }
    throw context.TypeError("Not a HttpURLConnection");
  }
View Full Code Here

TOP

Related Classes of anvil.core.io.AnyInputStream

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.