Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.commons.marshall.jboss;
 
 import  org.jboss.marshalling.Creator;
 
 
public class JBossExternalizerAdapter implements org.jboss.marshalling.Externalizer {
   @SuppressWarnings("unchecked")
   public JBossExternalizerAdapter(Externalizer<?> externalizer) {
      this. = (Externalizer<Object>) externalizer;
   }
   @Override
   public void writeExternal(Object subjectObjectOutput outputthrows IOException {
      .writeObject(outputsubject);
   }
   @Override
   public Object createExternal(Class<?> subjectTypeObjectInput input, Creator defaultCreatorthrows IOExceptionClassNotFoundException {
      return .readObject(input);
   }
   @Override
   public void readExternal(Object subjectObjectInput inputthrows IOExceptionClassNotFoundException {
      // No-op
   }
New to GrepCode? Check out our FAQ X