Logo Search packages:      
Sourcecode: jaminid version File versions  Download package

static void com::prolixtech::jaminid::Protocol::makeNewMIME (  )  [inline, static]

Creates a new mime file with the bare basic defaults

Definition at line 268 of file Protocol.java.

Referenced by Protocol().

                                     {
        
        MIME.clear();
        
        MIME.setProperty(".gif", "image/gif");
        MIME.setProperty(".png", "image/png");
        MIME.setProperty(".jpeg", "image/jpeg");
        MIME.setProperty(".jpg", "image/jpeg");
        MIME.setProperty(".html", "text/html");
        MIME.setProperty(".htm", "text/html");
        MIME.setProperty(".css", "text/css");
        MIME.setProperty(".mp3", "audio/mp3");
        MIME.setProperty(".txt", "text/plain");

        
        
        try {
            OutputStream nmim = new FileOutputStream(Protocol.MIMEFILE);  
            MIME.storeToXML(nmim, "\nJAMINID MIMETYPES\n\nThese are the default MIME types for the jaminid daemon. If you had a modified but invalid MIME file here, it may have been reverted to this.");
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }


Generated by  Doxygen 1.6.0   Back to index