Package anvil.core

Examples of anvil.core.AnyString


   * @param value Value
   * @return Instance of Any to where the value was wrapped.
   */
  public Any setGlobal(String name, String value)
  {
    return _globals.setVariable(name, new AnyString(value));
  }
View Full Code Here


        }

      case Types.BLOB:
        Blob blob = set.getBlob(field);
        if (blob != null) {
          return new AnyString(new String(blob.getBytes(0, (int)blob.length())));
        } else {
          return Any.NULL;
        }

      case Types.CLOB:
View Full Code Here

        }

      case Types.BLOB:
        Blob blob = stmt.getBlob(field);
        if (blob != null) {
          return new AnyString(new String(blob.getBytes(0, (int)blob.length())));
        } else {
          return Any.NULL;
        }

      case Types.CLOB:
View Full Code Here

  /// @throws IOError If an I/O error occurs.
  public Any m_readLine(Context context)
  {
    try {
      String buffer = _input.readLine();
      return (buffer == null) ? NULL : new AnyString(buffer);
    } catch (IOException e) {
      throw context.exception(e);
    }
  }
View Full Code Here

    String name;
    for(int i=1; i<=n; i++) {
      value = SQLUtil.getField(_resultSet, metadata, i);
      name = metadata.getColumnName(i);
      if (name != null) {
        row.put(new AnyString(name), value);
      }
    }
    return row;
  }
View Full Code Here

  /// @method getName
  /// Returns the name of file pointed by this File instance.
  /// @synopsis string getName()
  public Any m_getName()
  {
    return new AnyString(_file.getName());
  }
View Full Code Here

  /// @method getParent
  /// Returns the path of parent file pointed by this File instance.
  /// @synopsis string getParent()
  public Any m_getParent()
  {
    return new AnyString(_file.getParent());
  }
View Full Code Here

  /// @method getPath
  /// Returns the path of file pointed by this File instance.
  /// @synopsis string getPath()
  public Any m_getPath()
  {
    return new AnyString(_file.getPath());
  }
View Full Code Here

  /// @method getAbsolutePath
  /// Returns the absolute path.
  /// @synopsis string getAbsolutePath()
  public Any m_getAbsolutePath()
  {
    return new AnyString(_file.getAbsolutePath());
  }
View Full Code Here

  /// Returns the canonical path.
  /// @synopsis string getCanonicalPath()
  public Any m_getCanonicalPath(Context context)
  {
    try {
      return new AnyString(_file.getCanonicalPath());
    } catch (IOException e) {
      throw context.exception(e);
    }
  }
View Full Code Here

TOP

Related Classes of anvil.core.AnyString

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.