Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2010 JBoss Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.jbpm.services.task.impl.model;
import  org.kie.internal.task.api.model.AccessType;
public class ContentDataImpl implements org.kie.internal.task.api.model.ContentData {
	private AccessType accessType;
	private String type;
	private byte[] content;
	public AccessType getAccessType() {
		return ;
	}
	public void setAccessType(AccessType accessType) {
		this. = accessType;
	}
	public String getType() {
		return ;
	}
	public void setType(String type) {
		this. = type;
	}
	public byte[] getContent() {
		return ;
	}
	public void setContent(byte[] content) {
		this. = content;
	}
	public void writeExternal(ObjectOutput outthrows IOException {
		if (  != null ) {
            out.writeBooleantrue );
            out.writeUTF.toString() );
else {
            out.writeBooleanfalse );
        }
		if (  != null ) {
            out.writeBooleantrue );
            out.writeUTF );
else {
            out.writeBooleanfalse );
        }
		if (  != null ) {
            out.writeBooleantrue );
            out.writeInt. );
            out.write );
else {
            out.writeBooleanfalse );
        }
    }
    
    public void readExternal(ObjectInput inthrows IOException,
                                            ClassNotFoundException {
    	if (in.readBoolean()) {
    		 = AccessType.valueOf(in.readUTF());
    	}
    	if (in.readBoolean()) {
    		 = in.readUTF();
    	}
    	if (in.readBoolean()) {
    		 = new bytein.readInt() ];
    		in.readFully );
    	}
    }
New to GrepCode? Check out our FAQ X