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

package com.macromedia.generator.app;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;

// Referenced classes of package com.macromedia.generator.app:
//            URLCache, GenCache, CacheLog

public class FontCache extends URLCache
{

    public FontCache(long l, boolean flag, boolean flag1, long l1, boolean flag2, 
            int i, int j, CacheLog cachelog)
    {
        super(l, flag, flag1, l1, flag2, i, j, cachelog);
    }

    protected void logCacheMessage(String s, int i)
    {
        if(mLog != null)
        {
            String s1 = "FontCache: " + s;
            super.logCacheMessage(s1, i);
        }
    }

    protected byte[] readURLInputStream(URL url, InputStream inputstream, long l, int i, boolean flag, long l1)
        throws IOException
    {
        byte abyte0[] = null;
        abyte0 = readInputStream(inputstream, l, i);
        if(abyte0 != null && isCacheEnabled() && (getForce() || flag))
            setCacheURL(url, abyte0, abyte0.length, l1);
        return abyte0;
    }
}