org.gamenet.application.mm8leveleditor.converter
Class StrToTextFormatConverter

java.lang.Object
  extended byorg.gamenet.application.mm8leveleditor.converter.FormatConverter
      extended byorg.gamenet.application.mm8leveleditor.converter.StrToTextFormatConverter

public class StrToTextFormatConverter
extends FormatConverter

Author:
mlk

Nested Class Summary
 class StrToTextFormatConverter.StrToTextConversionOutputStream
           
 class StrToTextFormatConverter.TextToStrConversionInputStream
           
 
Nested classes inherited from class org.gamenet.application.mm8leveleditor.converter.FormatConverter
FormatConverter.UnsupportedFileFormatException
 
Field Summary
 
Fields inherited from class org.gamenet.application.mm8leveleditor.converter.FormatConverter
sourceInputStream, sourceOutputStream
 
Constructor Summary
StrToTextFormatConverter()
           
 
Method Summary
 void setDestinationOutputStreamForNewFormat(OutputStream stream, LodResource anEntry)
          Set output Stream where the new converted format will be written
 void setSourceInputStreamForNewFormat(InputStream stream, LodResource anEntry)
          Set input stream from which the new converted format will be read
 
Methods inherited from class org.gamenet.application.mm8leveleditor.converter.FormatConverter
getDestinationInputStreamForOldFormat, getRequiredStreamCount, getSourceOutputStreamForOldFormat, getSuggestedFilenames, isFileNameComponentForLodEntryFileName, requiresMultipleStreams, setDestinationOutputStreamsForNewFormat, setSourceInputStreamsForNewFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrToTextFormatConverter

public StrToTextFormatConverter()
Method Detail

setDestinationOutputStreamForNewFormat

public void setDestinationOutputStreamForNewFormat(OutputStream stream,
                                                   LodResource anEntry)
                                            throws IOException
Description copied from class: FormatConverter
Set output Stream where the new converted format will be written

Specified by:
setDestinationOutputStreamForNewFormat in class FormatConverter
Parameters:
stream - where the new converted format will be written
Throws:
IOException

setSourceInputStreamForNewFormat

public void setSourceInputStreamForNewFormat(InputStream stream,
                                             LodResource anEntry)
                                      throws IOException
Description copied from class: FormatConverter
Set input stream from which the new converted format will be read

Specified by:
setSourceInputStreamForNewFormat in class FormatConverter
Parameters:
stream - from which the new converted format will be read
Throws:
IOException