buffer = out.toByteArray(); writeOut.close();
writeOut.writeLong( remoteResource.getDate().getTime()); writeOut.writeUTF( remoteResource.getAuthor());  writeOut.close();
    public void javaToNative (Object object, TransferData transferData) {    	if (object == null || !(object instanceof ISVNRemoteResource)) return;    	    	if (isSupportedType(transferData)) {    		ISVNRemoteResource remoteResource = (ISVNRemoteResource) object;	    		try {    			// write data to a byte array and then ask super to convert to pMedium    			ByteArrayOutputStream out = new ByteArrayOutputStream();    			DataOutputStream writeOut = new DataOutputStream(out);                   				// write 1 if remote resource is folder, 0 otherwise                byte isFolder = (remoteResource.isFolder()?(byte)1:(byte)0);                writeOut.write(isFolder);                                    // we write the url of the remote resource                byte[] buffer = remoteResource.getUrl().toString().getBytes();    			writeOut.writeInt(buffer.length);    			writeOut.write(buffer);    				                // we write the url of the repository                buffer = remoteResource.getRepository().getUrl().toString().getBytes();    			writeOut.writeInt(buffer.length);    			writeOut.write(buffer);    		                    // we write the revision                buffer = remoteResource.getRevision().toString().getBytes();                writeOut.writeInt(buffer.length);                writeOut.write(buffer);                                buffer = out.toByteArray();    		    writeOut.close();                    // converts a java byte[]to a platform specific representation    		    super.javaToNative(buffer, transferData);    			    	   } catch (IOException e) {    	   }    	}    }