/** * Given a key, the escape method returns the filename which shall be used. * * @param key the key * @return the desired and escaped filename */ protected String getName(final Object key) { return escape(key == null ? "\0" : key.toString()) + ".xml"; }
/** * Given a filename, the unescape method returns the key which originated it. * * @param name the filename * @return the original key */ protected Object extractKey(final String name) { final String key = unescape(name.substring(0, name.length() - 4)); return key.equals("\0") ? null : key; }
/** * Given a key, the escape method returns the filename which shall be used. * * @param key the key * @return the desired and escaped filename */ protected String getName(final Object key) { return escape(key == null ? "\0" : key.toString()) + ".xml"; }
/** * Given a filename, the unescape method returns the key which originated it. * * @param name the filename * @return the original key */ @Override protected String extractKey(final String name) { final String key = unescape(name.substring(0, name.length() - 4)); return key.equals("\0") ? null : key; }
/** * Given a key, the escape method returns the filename which shall be used. * * @param key the key * @return the desired and escaped filename */ protected String getName(final Object key) { return escape(key == null ? "\0" : key.toString()) + ".xml"; }
/** * Given a filename, the unescape method returns the key which originated it. * * @param name the filename * @return the original key */ protected Object extractKey(final String name) { final String key = unescape(name.substring(0, name.length() - 4)); return key.equals("\0") ? null : key; }
/** * Given a key, the escape method returns the filename which shall be used. * * @param key the key * @return the desired and escaped filename */ protected String getName(final Object key) { return escape(key == null ? "\0" : key.toString()) + ".xml"; }
/** * Given a filename, the unescape method returns the key which originated it. * * @param name the filename * @return the original key */ protected Object extractKey(final String name) { final String key = unescape(name.substring(0, name.length() - 4)); return key.equals("\0") ? null : key; }
/** * Given a key, the escape method returns the filename which shall be used. * * @param key the key * @return the desired and escaped filename */ @Override protected String getName(final Object key) { return escape(key == null ? "\0" : key.toString()) + ".xml"; }
/** * Given a filename, the unescape method returns the key which originated it. * * @param name the filename * @return the original key */ protected Object extractKey(final String name) { final String key = unescape(name.substring(0, name.length() - 4)); return key.equals("\0") ? null : key; }
/** * Given a key, the escape method returns the filename which shall be used. * * @param key the key * @return the desired and escaped filename */ protected String getName(final Object key) { return escape(key == null ? "\0" : key.toString()) + ".xml"; }
/** * Given a filename, the unescape method returns the key which originated it. * * @param name the filename * @return the original key */ protected Object extractKey(final String name) { final String key = unescape(name.substring(0, name.length() - 4)); return key.equals("\0") ? null : key; }
/** * Given a key, the escape method returns the filename which shall be used. * * @param key the key * @return the desired and escaped filename */ protected String getName(final Object key) { return escape(key == null ? "\0" : key.toString()) + ".xml"; }
/** * Given a filename, the unescape method returns the key which originated it. * * @param name the filename * @return the original key */ protected Object extractKey(final String name) { final String key = unescape(name.substring(0, name.length() - 4)); return key.equals("\0") ? null : key; }
/** * Given a key, the escape method returns the filename which shall be used. * * @param key the key * @return the desired and escaped filename */ protected String getName(final Object key) { return escape(key == null ? "\0" : key.toString()) + ".xml"; }
/** * Given a filename, the unescape method returns the key which originated it. * * @param name the filename * @return the original key */ protected Object extractKey(final String name) { final String key = unescape(name.substring(0, name.length() - 4)); return key.equals("\0") ? null : key; }
/** * Given a key, the escape method returns the filename which shall be used. * * @param key the key * @return the desired and escaped filename */ protected String getName(final Object key) { return escape(key == null ? "\0" : key.toString()) + ".xml"; }
/** * Given a filename, the unescape method returns the key which originated it. * * @param name the filename * @return the original key */ protected Object extractKey(final String name) { final String key = unescape(name.substring(0, name.length() - 4)); return key.equals("\0") ? null : key; }