private File getBareJidFile(String bareJid) { String encodedJid = Base32Encoder.getInstance().encode(bareJid); return new File(fileDir, ENTRY_PREFIX + encodedJid); }
/** * Creates a new SimpleDirectoryPersistentCache Object. Make sure that the * cacheDir exists and that it's an directory. * <p> * Default filename encoder {@link Base32Encoder}, as this will work on all * filesystems, both case sensitive and case insensitive. It does however * produce longer filenames. * * @param cacheDir */ public SimpleDirectoryPersistentCache(File cacheDir) { this(cacheDir, Base32Encoder.getInstance()); }