org.gamenet.application.mm8leveleditor.converter
Class MultipleTGAToBMPFormatConverter

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

public class MultipleTGAToBMPFormatConverter
extends FormatConverter

Author:
mlk

Nested Class Summary
 class MultipleTGAToBMPFormatConverter.BMPToMultipleTGAConversionInputStream
           
 class MultipleTGAToBMPFormatConverter.MultipleTGAToBMPConversionOutputStream
           
 
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
MultipleTGAToBMPFormatConverter()
           
 
Method Summary
 int getRequiredStreamCount()
           
 String[] getSuggestedFilenames(String baseFilename)
           
 boolean isFileNameComponentForLodEntryFileName(String fileName, String LodEntryFileName)
           
 boolean requiresMultipleStreams()
           
 void setDestinationOutputStreamForNewFormat(OutputStream stream, LodResource bitmapLodEntry)
          Set output Stream where the new BMP format will be written
 void setDestinationOutputStreamsForNewFormat(OutputStream[] outputStreamArray, LodResource lodResource)
           
 void setSourceInputStreamForNewFormat(InputStream stream, LodResource tgaAcceptingLodEntry)
          Set input Stream where the new BMP format will be written
 void setSourceInputStreamsForNewFormat(InputStream[] inputStreamArray, LodResource lodResource)
           
 
Methods inherited from class org.gamenet.application.mm8leveleditor.converter.FormatConverter
getDestinationInputStreamForOldFormat, getSourceOutputStreamForOldFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleTGAToBMPFormatConverter

public MultipleTGAToBMPFormatConverter()
Method Detail

isFileNameComponentForLodEntryFileName

public boolean isFileNameComponentForLodEntryFileName(String fileName,
                                                      String LodEntryFileName)
Overrides:
isFileNameComponentForLodEntryFileName in class FormatConverter

requiresMultipleStreams

public boolean requiresMultipleStreams()
Overrides:
requiresMultipleStreams in class FormatConverter

getRequiredStreamCount

public int getRequiredStreamCount()
Overrides:
getRequiredStreamCount in class FormatConverter

getSuggestedFilenames

public String[] getSuggestedFilenames(String baseFilename)
Overrides:
getSuggestedFilenames in class FormatConverter

setDestinationOutputStreamsForNewFormat

public void setDestinationOutputStreamsForNewFormat(OutputStream[] outputStreamArray,
                                                    LodResource lodResource)
                                             throws IOException
Overrides:
setDestinationOutputStreamsForNewFormat in class FormatConverter
Throws:
IOException

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

setSourceInputStreamsForNewFormat

public void setSourceInputStreamsForNewFormat(InputStream[] inputStreamArray,
                                              LodResource lodResource)
                                       throws IOException
Overrides:
setSourceInputStreamsForNewFormat in class FormatConverter
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