Skip to content

Instantly share code, notes, and snippets.

View FilipeRamalho's full-sized avatar
🌠
Looking at the stars

Filipe Ramalho FilipeRamalho

🌠
Looking at the stars
View GitHub Profile
@FilipeRamalho
FilipeRamalho / FileManager.java
Created March 25, 2017 14:52 — forked from menzerath/FileManager.java
Facharbeit: Funktionsweise des HTTP-Protokolls und Implementation eines einfachen Webservers in Java - http://menzerath.eu/artikel/wie-funktioniert-das-http-protokoll/
package de.menzerath.util;
import java.io.File;
import java.text.DecimalFormat;
import java.util.HashMap;
public class FileManager {
private static HashMap<String, String> mimeTypes = new HashMap<>();
private static boolean mimeTypesInitCompleted = false;