Codota Logo
ChangeAwareObjectInputStream.readObject
Code IndexAdd Codota to your IDE (free)

How to use
readObject
method
in
org.datacleaner.util.ChangeAwareObjectInputStream

Best Java code snippets using org.datacleaner.util.ChangeAwareObjectInputStream.readObject (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: datacleaner/DataCleaner

  protected AnalysisResult readResult(final InputStream inputStream, final List<Throwable> errors) throws Exception {
    final ChangeAwareObjectInputStream changeAwareObjectInputStream = new ChangeAwareObjectInputStream(inputStream);
    final Object object = changeAwareObjectInputStream.readObject();
    changeAwareObjectInputStream.close();
    if (object instanceof AnalysisResult) {
      // response carries a result
      return (AnalysisResult) object;
    } else if (object instanceof List) {
      // response carries a list of errors
      @SuppressWarnings("unchecked") final List<Throwable> slaveErrors = (List<Throwable>) object;
      errors.addAll(slaveErrors);
      return null;
    } else {
      throw new IllegalStateException("Unexpected response payload: " + object);
    }
  }
}
origin: org.eobjects.datacleaner/DataCleaner-monitor-services

  @Override
  public Object eval(InputStream in) {
    ChangeAwareObjectInputStream inputStream = null;
    try {
      inputStream = new ChangeAwareObjectInputStream(in);
      return inputStream.readObject();
    } catch (Exception e) {
      if (e instanceof RuntimeException) {
        throw (RuntimeException) e;
      }
      throw new IllegalStateException(e);
    } finally {
      FileHelper.safeClose(inputStream);
    }
  }
});
origin: datacleaner/DataCleaner

  objectInputStream = new ChangeAwareObjectInputStream(new ByteArrayInputStream(bytes));
  objectInputStream.addClassLoader(type.getClassLoader());
  return objectInputStream.readObject();
} catch (final Exception e) {
  throw new IllegalStateException("Could not deserialize to " + type + ".", e);
origin: datacleaner/DataCleaner

try {
  is.addClassLoader(ExtensionPackage.getExtensionClassLoader());
  analysisResult = (AnalysisResult) is.readObject();
} finally {
  FileHelper.safeClose(is);
origin: datacleaner/DataCleaner

inputStream = new ChangeAwareObjectInputStream(userPreferencesFile.getContent().getInputStream());
inputStream.addRenamedClass("org.datacleaner.user.UserPreferences", UserPreferencesImpl.class);
final UserPreferencesImpl result = (UserPreferencesImpl) inputStream.readObject();
org.datacleaner.utilChangeAwareObjectInputStreamreadObject

Popular methods of ChangeAwareObjectInputStream

  • <init>
  • addClassLoader
  • addRenamedClass
  • addRenamedPackage
  • close
  • getClassDescriptor
  • getClassNameRenamed
  • getFieldNames
  • resolveClass

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now