SourceInterface.java :  » Plugin » sqlitegen » com » antlersoft » android » dbgen » Android Open Source

Android Open Source » Plugin » sqlitegen 
sqlitegen » com » antlersoft » android » dbgen » SourceInterface.java
/**
 * Copyright (C) 2008 Michael A. MacDonald
 */
package com.antlersoft.android.dbgen;

import java.io.IOException;
import java.io.PrintWriter;

/**
 * Interface with file system or hosting IDE
 * @author Michael A. MacDonald
 *
 */
public interface SourceInterface {
  
  /**
   * 
   * @param packageName
   * @param className
   * @return
   * @throws IOException
   * @throws SIException
   */
  public PrintWriter getWriterForClass( String packageName, String className)
    throws IOException, SIException;
  
  public void doneWithWriter(PrintWriter w) throws IOException, SIException;

  /**
   * Exception indicating a non-IO problem in the SourceInterface implementation
   * @author Michael A. MacDonald
   *
   */
  public class SIException extends Exception {

    /**
     * Default serialization id to suppress warnings
     */
    private static final long serialVersionUID = -8992118680928506335L;

    /**
     * @param message
     */
    public SIException(String message) {
      super(message);
      // TODO Auto-generated constructor stub
    }

    /**
     * @param cause
     */
    public SIException(Throwable cause) {
      super(cause);
      // TODO Auto-generated constructor stub
    }

    /**
     * @param message
     * @param cause
     */
    public SIException(String message, Throwable cause) {
      super(message, cause);
      // TODO Auto-generated constructor stub
    }

  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.