1   /*
2    * Copyright (C) The MetaClass Group. All rights reserved.
3    *
4    * This software is published under the terms of the Spice
5    * Software License version 1.1, a copy of which has been included
6    * with this distribution in the LICENSE.txt file.
7    */
8   package org.codehaus.metaclass.tools.compiler;
9   
10  import java.io.File;
11  import java.io.IOException;
12  import java.io.InputStream;
13  import java.io.OutputStream;
14  import org.codehaus.metaclass.io.MetaClassIO;
15  import org.codehaus.metaclass.model.ClassDescriptor;
16  
17  /***
18   * @author Peter Donald
19   * @version $Revision: 1.3 $ $Date: 2003/12/11 08:41:51 $
20   */
21  class MockIO
22      implements MetaClassIO
23  {
24      public ClassDescriptor deserializeClass( InputStream input )
25          throws IOException
26      {
27          return null;
28      }
29  
30      public void serializeClass( OutputStream output, ClassDescriptor info )
31          throws IOException
32      {
33          throw new IOException();
34      }
35  
36      public String getResourceName( String classname )
37      {
38          return null;
39      }
40  
41      public void writeDescriptor( File baseDir, ClassDescriptor info )
42          throws Exception
43      {
44          throw new IOException();
45      }
46  }