// Path: src/main/java/org/carrot2/labs/smartsprites/message/Message.java
// public enum MessageLevel
// {
//     /**
//      * Information message, can be ignored.
//      */
//     INFO(1),
// 
//     /**
//      * Notice messages related to IE6 problems.
//      */
//     IE6NOTICE(2),
// 
//     /**
//      * Notice messages related to deprecated features.
//      */
//     DEPRECATION(2),
// 
//     /**
//      * Warning messages, ignoring can lead to the converted designs looking broken.
//      */
//     WARN(4),
// 
//     /**
//      * Error messages, SmartSpricess cannot perform processing.
//      */
//     ERROR(5),
// 
//     /**
//      * Status messages displayed at the end of processing.
//      */
//     STATUS(6);
// 
//     /** Numeric level for comparisons */
//     private final int level;
// 
//     private MessageLevel(int level)
//     {
//         this.level = level;
//     }
// 
//     public static final Comparator<MessageLevel> COMPARATOR = new Comparator<MessageLevel>()
//     {
//         public int compare(MessageLevel levelA, MessageLevel levelB)
//         {
//             return levelA.level - levelB.level;
//         }
//     };
// 
// }


import java.io.PrintStream;
import org.carrot2.labs.smartsprites.message.Message.MessageLevel;
package org.carrot2.labs.smartsprites.message;



/**
 * Outputs logged {@link Message}s to the provided {@link PrintStream}. The
 * {@link Message#toString()} method will be used to format the messages.
 */
public class PrintStreamMessageSink implements MessageSink
{
    /** The stream to print messages to. */
    private final PrintStream printStream;

    /** Logging level */
// Path: src/main/java/org/carrot2/labs/smartsprites/message/Message.java
// public enum MessageLevel
// {
//     /**
//      * Information message, can be ignored.
//      */
//     INFO(1),
// 
//     /**
//      * Notice messages related to IE6 problems.
//      */
//     IE6NOTICE(2),
// 
//     /**
//      * Notice messages related to deprecated features.
//      */
//     DEPRECATION(2),
// 
//     /**
//      * Warning messages, ignoring can lead to the converted designs looking broken.
//      */
//     WARN(4),
// 
//     /**
//      * Error messages, SmartSpricess cannot perform processing.
//      */
//     ERROR(5),
// 
//     /**
//      * Status messages displayed at the end of processing.
//      */
//     STATUS(6);
// 
//     /** Numeric level for comparisons */
//     private final int level;
// 
//     private MessageLevel(int level)
//     {
//         this.level = level;
//     }
// 
//     public static final Comparator<MessageLevel> COMPARATOR = new Comparator<MessageLevel>()
//     {
//         public int compare(MessageLevel levelA, MessageLevel levelB)
//         {
//             return levelA.level - levelB.level;
//         }
//     };
// 
// }


// Path: src/main/java/org/carrot2/labs/smartsprites/message/PrintStreamMessageSink.java
import java.io.PrintStream;
import org.carrot2.labs.smartsprites.message.Message.MessageLevel;

package org.carrot2.labs.smartsprites.message;



/**
 * Outputs logged {@link Message}s to the provided {@link PrintStream}. The
 * {@link Message#toString()} method will be used to format the messages.
 */
public class PrintStreamMessageSink implements MessageSink
{
    /** The stream to print messages to. */
    private final PrintStream printStream;

    /** Logging level */
    private final MessageLevel level;