org.gamenet.application.mm8leveleditor.converter
Class TGAToBMPFormatConverter

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

public class TGAToBMPFormatConverter
extends FormatConverter

Author:
mlk

Nested Class Summary
 class TGAToBMPFormatConverter.BMPToTGAConversionInputStream
           
 class TGAToBMPFormatConverter.TGAToBMPConversionOutputStream
           
 
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
TGAToBMPFormatConverter()
           
 
Method Summary
 void setDestinationOutputStreamForNewFormat(OutputStream stream, LodResource bitmapLodEntry)
          Set output Stream where the new BMP format will be written
 void setSourceInputStreamForNewFormat(InputStream stream, LodResource tgaAcceptingLodEntry)
          Set input Stream where the new BMP format will be written
 
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

TGAToBMPFormatConverter

public TGAToBMPFormatConverter()
Method Detail

setDestinationOutputStreamForNewFormat

public void setDestinationOutputStreamForNewFormat(OutputStream stream,
                                                   LodResource bitmapLodEntry)
                                            throws IOException
Set output Stream where the new BMP 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 tgaAcceptingLodEntry)
                                      throws IOException
Set input Stream where the new BMP format will be written

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