// Decompiled by DJ v2.6.6.51 Copyright 2000 Atanas Neshkov  Date: 6/15/2001 17:06:07
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   com/macromedia/generator/commands/DataSourceEncodingCommand

package com.macromedia.generator.commands;

import com.macromedia.generator.api.Context;
import com.macromedia.generator.api.Script;
import com.macromedia.generator.app.*;
import java.util.Properties;

public class DataSourceEncodingCommand extends GenericCommand
{

    public DataSourceEncodingCommand()
    {
    }

    public void doCommand(FlashEnvironment flashenvironment, Script script, Context context, int i, Properties properties)
        throws FlashCommandException
    {
        String s = properties.getProperty("encoding", "Default");
        s = context.apply(s);
        if(!s.equalsIgnoreCase("Default") && !s.equalsIgnoreCase("Standard") && !s.equalsIgnoreCase("D\351faut") && !s.equalsIgnoreCase("Padr\343o") && !s.equalsIgnoreCase("Predeterminado") && !s.equalsIgnoreCase("Predefinita"))
            flashenvironment.setDataEncoding(s);
    }
}