Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright (c) 2011 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
   *  All rights reserved. This program and the accompanying materials
   *  are made available under the terms of the GNU Lesser Public License v2.1
   *  which accompanies this distribution, and is available at
   *  http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
   *
   *  Contributors:
   *      Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - initial API and implementation
  */
 package de.ipk_gatersleben.bit.bi.edal.rmi.client;
 
 
 
 
SampleClient version of de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataFile to use eDAL system like the stand-alone implementation.

Author(s):
arendd
 
 public class ClientPrimaryDataFile extends ClientPrimaryDataEntity {

Constructor for ClientPrimaryDataFile.

 
 			ClientDataManager client) {
 		super(fileclient);
 	}

 
 	public void read(OutputStream dataOutputStreamthrows RemoteException,
Java 7 version
 
 				dataOutputStream)) {
 		}

Java 6 version
 
 		// RemoteOutputStreamServer ostream = new SimpleRemoteOutputStream(
 		// dataOutputStream);
 		//
 		// ((PrimaryDataFileRmiInterface) myEntityRMI).read(ostream.export(),
 		// this
 		// .getCurrentVersion().getRevision(), clientDataManager
 		// .getSubject());
 		//
 		// ostream.close();
 
 	}

	public void store(InputStream dataInputStreamthrows RemoteException,
		if (dataInputStream == null) {
					"can not store inputstream: stream is null ");
		}

Java 7 Version
				dataInputStream)) {
		}

Java 6 Version
		// RemoteInputStreamServer istream = new SimpleRemoteInputStream(
		// dataInputStream);
		// ((PrimaryDataFileRmiInterface) myEntityRMI).store(istream.export(),
		// clientDataManager.getSubject());
		//
		// istream.close();
		this. = this.getVersions().last();
	}

	public void setMetaData(MetaData new_metadatathrows RemoteException,
		this. = this.getVersions().last();
	}
New to GrepCode? Check out our FAQ X