org.eclipse.emf.ecore.resource.impl
Class PlatformResourceURIHandlerImpl.PlatformResourceOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.PlatformResourceOutputStream
Direct Known Subclasses:
URIConverterImpl.PlatformResourceOutputStream
Enclosing class:
PlatformResourceURIHandlerImpl

public static class PlatformResourceURIHandlerImpl.PlatformResourceOutputStream
extends java.io.ByteArrayOutputStream

An output stream that transfers its contents to an IFile upon closing.


Field Summary
protected  IFile file
           
protected  boolean force
           
protected  boolean keepHistory
           
protected  boolean previouslyFlushed
           
protected  IProgressMonitor progressMonitor
           
 
Fields inherited from class java.io.ByteArrayOutputStream
bytes, index
 
Constructor Summary
PlatformResourceURIHandlerImpl.PlatformResourceOutputStream(IFile file, boolean force, boolean keepHistory, IProgressMonitor progressMonitor)
           
 
Method Summary
 void close()
           
protected  void createContainer(IContainer container)
           
 void flush()
           
 
Methods inherited from class java.io.ByteArrayOutputStream
toByteArray, write
 
Methods inherited from class java.io.OutputStream
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

protected IFile file

force

protected boolean force

keepHistory

protected boolean keepHistory

progressMonitor

protected IProgressMonitor progressMonitor

previouslyFlushed

protected boolean previouslyFlushed
Constructor Detail

PlatformResourceURIHandlerImpl.PlatformResourceOutputStream

public PlatformResourceURIHandlerImpl.PlatformResourceOutputStream(IFile file,
                                                                   boolean force,
                                                                   boolean keepHistory,
                                                                   IProgressMonitor progressMonitor)
Method Detail

createContainer

protected void createContainer(IContainer container)
                        throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.