AbstractFilePersistenceStrategy.getFile
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.thoughtworks.xstream.persistence.AbstractFilePersistenceStrategy.getFile(Showing top 15 results out of 315)

origin: com.thoughtworks.xstream/xstream

public boolean containsKey(final Object key) {
  // faster lookup
  final File file = getFile(getName(key));
  return file.isFile();
}
origin: com.thoughtworks.xstream/xstream

public Object get(final Object key) {
  return readFile(getFile(getName(key)));
}
origin: com.thoughtworks.xstream/xstream

public Object remove(final Object key) {
  // faster lookup
  final File file = getFile(getName(key));
  Object value = null;
  if (file.isFile()) {
    value = readFile(file);
    file.delete();
  }
  return value;
}
origin: org.jvnet.hudson/xstream

public boolean containsKey(final Object key) {
  // faster lookup
  final File file = getFile(getName(key));
  return file.isFile();
}
origin: ovea-deprecated/jetty-session-redis

public Object remove(final Object key) {
  // faster lookup
  final File file = getFile(getName(key));
  Object value = null;
  if (file.isFile()) {
    value = readFile(file);
    file.delete();
  }
  return value;
}
origin: org.jvnet.hudson/xstream

public Object remove(final Object key) {
  // faster lookup
  final File file = getFile(getName(key));
  Object value = null;
  if (file.isFile()) {
    value = readFile(file);
    file.delete();
  }
  return value;
}
origin: ovea-deprecated/jetty-session-redis

public boolean containsKey(final Object key) {
  // faster lookup
  final File file = getFile(getName(key));
  return file.isFile();
}
origin: x-stream/xstream

public boolean containsKey(final K key) {
  // faster lookup
  final File file = getFile(getName(key));
  return file.isFile();
}
origin: x-stream/xstream

@Override
public V remove(final Object key) {
  // faster lookup
  final File file = getFile(getName(key));
  V value = null;
  if (file.isFile()) {
    value = readFile(file);
    file.delete();
  }
  return value;
}
origin: org.hudsonci.tools/xstream

public Object remove(final Object key) {
  // faster lookup
  final File file = getFile(getName(key));
  Object value = null;
  if (file.isFile()) {
    value = readFile(file);
    file.delete();
  }
  return value;
}
origin: org.hudsonci.tools/xstream

public boolean containsKey(final Object key) {
  // faster lookup
  final File file = getFile(getName(key));
  return file.isFile();
}
origin: x-stream/xstream

@Override
public V get(final Object key) {
  return readFile(getFile(getName(key)));
}
origin: ovea-deprecated/jetty-session-redis

public Object get(final Object key) {
  return readFile(getFile(getName(key)));
}
origin: org.jvnet.hudson/xstream

public Object get(final Object key) {
  return readFile(getFile(getName(key)));
}
origin: org.hudsonci.tools/xstream

public Object get(final Object key) {
  return readFile(getFile(getName(key)));
}
com.thoughtworks.xstream.persistenceAbstractFilePersistenceStrategygetFile

Popular methods of AbstractFilePersistenceStrategy

  • extractKey
    Given a filename, the unescape method returns the key which originated it.
  • get
  • getName
    Given a key, the escape method returns the filename which shall be used.
  • isValid
  • put
  • readFile
  • writeFile

Popular classes and methods

  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
    Returns a new BigDecimal instance with the specified scale. If the new scale is greater than the old
  • putExtra (Intent)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)