@Test public void testIsCookieFile() { assertThat(cff.isCookieFile("SQLite".getBytes()), is(true)); assertThat(cff.isCookieFile("test".getBytes()), is(false)); assertThat(cff.isCookieFile("SQLita".getBytes()), is(false)); }
public boolean isCookieFile(byte[] header) { if (COOKIE_FILE_HEADER.startsWith(new String(header))) { return true; } else { return false; } }
CookieFromFirefox implements Cookie { public boolean isCookieFile(byte[] header) { if (COOKIE_FILE_HEADER.startsWith(new String(header))) { return true; } else { return false; } } }
CookieFromFirefox implements Cookie { public boolean isCookieFile(byte[] header) { if (COOKIE_FILE_HEADER.startsWith(new String(header))) { return true; } else { return false; } } CookieFromFirefox();  CookieFromFirefox(File cookieFile); }
CookieFromFirefox implements Cookie { public boolean isCookieFile(byte[] header) { if (COOKIE_FILE_HEADER.startsWith(new String(header))) { return true; } else { return false; } } CookieFromFirefox();  CookieFromFirefox(File cookieFile); void setFile(File cookieFile); String getValue(String domain, String name); File defaultCookieFilePath(); boolean isCookieFile(byte[] header); void close(); }
CookieFromFirefox implements Cookie { public boolean isCookieFile(byte[] header) { if (COOKIE_FILE_HEADER.startsWith(new String(header))) { return true; } else { return false; } } CookieFromFirefox();  CookieFromFirefox(File cookieFile); void setFile(File cookieFile); String getValue(String domain, String name); File defaultCookieFilePath(); boolean isCookieFile(byte[] header); void close();  }