KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > xmi > impl > BasicResourceHandler


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2005 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: BasicResourceHandler.java,v 1.2 2005/06/08 06:16:07 nickb Exp $
16  */

17
18 package org.eclipse.emf.ecore.xmi.impl;
19
20
21 import java.io.InputStream JavaDoc;
22 import java.io.OutputStream JavaDoc;
23 import java.util.Map JavaDoc;
24
25 import org.eclipse.emf.ecore.xmi.XMLResource;
26 import org.eclipse.emf.ecore.xmi.XMLResource.ResourceHandler;
27
28
29 /**
30  * This is the basic implementation of the ResourceHandler interface.
31  * Implementations need to extend this class to overwrite the ResourceHandler behaviour.
32  */

33 public class BasicResourceHandler implements ResourceHandler
34 {
35
36   public void preLoad(XMLResource resource, InputStream JavaDoc inputStream, Map JavaDoc options)
37   {
38   }
39
40   public void postLoad(XMLResource resource, InputStream JavaDoc inputStream, Map JavaDoc options)
41   {
42   }
43
44   public void preSave(XMLResource resource, OutputStream JavaDoc outputStream, Map JavaDoc options)
45   {
46   }
47
48   public void postSave(XMLResource resource, OutputStream JavaDoc outputStream, Map JavaDoc options)
49   {
50   }
51
52 }
53
Popular Tags