Code example for FileHandler

Methods: close

        r = new LogRecord(Level.CONFIG, "msg");
    protected void tearDown() throws Exception { 
        if (null != handler) {
        reset(TEMPPATH + SEP + "log", "");
        // RoboVM note: Since we run the tests in the same process (and Android apparently doesn't) 
        // we need to clear the allLocks Map in FileHandler for all tests in here to succeed. 
        java.lang.reflect.Field f = FileHandler.class.getDeclaredField("allLocks");
        ((java.util.Map) f.get(null)).clear();
    public static InputStream propertiesToInputStream(Properties p) throws IOException {
        ByteArrayOutputStream bos = new ByteArrayOutputStream();, "");
        return new ByteArrayInputStream(bos.toByteArray());
Connect your IDE to all the code out there  Get Codota for Java