blob: a497cd965392d66a6fc46e1d104a04c82aa7266d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ote.message.data;
import java.nio.ByteBuffer;
/**
* @author Andrew M. Finkbeiner
*/
public class ByteArrayHolder {
private byte[] buffer;
private ByteBuffer byteBuffer;
public ByteArrayHolder() {
}
public ByteArrayHolder(byte[] buffer) {
this.buffer = buffer;
byteBuffer = ByteBuffer.wrap(buffer);
}
public void set(byte[] buffer) {
this.buffer = buffer;
byteBuffer = ByteBuffer.wrap(buffer);
}
public byte[] get() {
return this.buffer;
}
public ByteBuffer getByteBuffer() {
return byteBuffer;
}
}