本文整理了Java中org.ccsds.moims.mo.mal.structures.Blob
类的一些代码示例,展示了Blob
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Blob
类的具体详情如下:
包路径:org.ccsds.moims.mo.mal.structures.Blob
类名称:Blob
暂无
代码示例来源:origin: int.esa.ccsds.mo/TRANSPORT_JMS
public JMSBrokerBinding(URI uri, String localName, Blob authenticationId, QoSLevel[] expectedQos, UInteger priorityLevelNumber)
{
this.uri = uri;
this.localName = localName;
this.authenticationId = new Blob(JMSTransport.authId);
this.expectedQos = expectedQos;
this.priorityLevelNumber = priorityLevelNumber;
}
代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-com
@Override
public void encodeNullableBlob(final Blob value) throws MALException
{
try
{
if ((null != value)
&& ((value.isURLBased() && (null != value.getURL()))
|| (!value.isURLBased() && (null != value.getValue()))))
{
encodeBlob(value);
}
else
{
outputStream.addBytes((byte[]) null);
}
}
catch (IOException ex)
{
throw new MALException(ENCODING_EXCEPTION_STR, ex);
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/software-management
if (! data.equals(other.data))
if (! checksum.equals(other.checksum))
代码示例来源:origin: int.esa.ccsds.mo/TRANSPORT_TCPIP
/**
* Encode a blob
*/
@Override
public void encodeBlob(final Blob value) throws MALException {
byte[] byteValue = value.getValue();
encodeUInteger(new UInteger(byteValue.length));
if (value.getLength() > 0) {
try {
outputStream.directAdd(byteValue);
} catch (IOException ex) {
throw new MALException(ENCODING_EXCEPTION_STR, ex);
}
}
}
代码示例来源:origin: int.esa.ccsds.mo/TRANSPORT_GEN
if (wrappedBodyParts)
final Blob ele = (Blob) decoder.readElement(new Blob(), null);
final ByteArrayInputStream lbais = new ByteArrayInputStream(ele.getValue());
lenc = encFactory.createInputStream(lbais);
代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-com
@Override
public void retrieveRangeAgainUpdateReceived(org.ccsds.moims.mo.mal.transport.MALMessageHeader msgHeader,
org.ccsds.moims.mo.mal.structures.Blob chunk, org.ccsds.moims.mo.mal.structures.UInteger indexReceived, java.util.Map qosProperties) {
int index = (int) indexReceived.getValue();
Logger.getLogger(ArchiveSyncGenAdapter.class.getName()).log(Level.INFO,
"Received on rerequest! Chunk index: " + index);
lastTimeReceived = System.currentTimeMillis();
try {
receivedChunks.add(index, chunk.getValue());
} catch (MALException ex) {
Logger.getLogger(ArchiveSyncGenAdapter.class.getName()).log(Level.SEVERE, null, ex);
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/software-management
/**
* Returns a hash code for this object.
* @return a hash code value for this object.
*/
public int hashCode()
{
int hash = 7;
hash = 83 * hash + (address != null ? address.hashCode() : 0);
hash = 83 * hash + (data != null ? data.hashCode() : 0);
hash = 83 * hash + (checksum != null ? checksum.hashCode() : 0);
return hash;
}
代码示例来源:origin: int.esa.ccsds.mo/TRANSPORT_GEN
lowLevelOutputStream.write(((MALEncodedBody) messageParts[0]).getEncodedBody().getValue());
lowLevelOutputStream.flush();
lowLevelOutputStream.write(getEncodedBody().getEncodedBody().getValue());
lowLevelOutputStream.flush();
benc.close();
enc.writeElement(new Blob(bbaos.toByteArray()), null);
代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-com
@Override
public synchronized void retrieveRangeUpdateReceived(org.ccsds.moims.mo.mal.transport.MALMessageHeader msgHeader,
Blob chunk, UInteger indexReceived, java.util.Map qosProperties) {
int index = (int) indexReceived.getValue();
/*
Logger.getLogger(ArchiveSyncAdapter.class.getName()).log(Level.INFO,
"Received! Chunk index: " + index);
*/
lastTimeReceived = System.currentTimeMillis();
lastknowIndex = index;
try {
receivedChunks.add(index, chunk.getValue());
} catch (MALException ex) {
Logger.getLogger(ArchiveSyncGenAdapter.class.getName()).log(Level.SEVERE, null, ex);
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf
/**
* Returns a hash code for this object.
* @return a hash code value for this object.
*/
public int hashCode()
{
int hash = 7;
hash = 83 * hash + (network != null ? network.hashCode() : 0);
hash = 83 * hash + (providerURI != null ? providerURI.hashCode() : 0);
hash = 83 * hash + (objectType != null ? objectType.hashCode() : 0);
hash = 83 * hash + (sourceLinkDomainId != null ? sourceLinkDomainId.hashCode() : 0);
hash = 83 * hash + (sourceLinkObjectType != null ? sourceLinkObjectType.hashCode() : 0);
hash = 83 * hash + (sourceLinkObjId != null ? sourceLinkObjId.hashCode() : 0);
hash = 83 * hash + (relatedLink != null ? relatedLink.hashCode() : 0);
hash = 83 * hash + (objectBody != null ? objectBody.hashCode() : 0);
hash = 83 * hash + (objId != null ? objId.hashCode() : 0);
hash = 83 * hash + (timestamp != null ? timestamp.hashCode() : 0);
return hash;
}
代码示例来源:origin: int.esa.ccsds.mo/ENCODING_GEN
@Override
public Blob decodeBlob() throws MALException
{
return new Blob(sourceBuffer.getBytes());
}
代码示例来源:origin: int.esa.ccsds.mo/TRANSPORT_GEN
final Blob body = (Blob) encBodyElements.readElement(new Blob(), null);
final ByteArrayInputStream bais = new ByteArrayInputStream(body.getValue());
benc = encFactory.createInputStream(bais);
代码示例来源:origin: int.esa.ccsds.mo/ENCODING_GEN
@Override
public void encodeNullableBlob(final Blob value) throws MALException
{
try
{
if ((null != value)
&& ((value.isURLBased() && (null != value.getURL()))
|| (!value.isURLBased() && (null != value.getValue()))))
{
outputStream.addNotNull();
encodeBlob(value);
}
else
{
outputStream.addIsNull();
}
}
catch (IOException ex)
{
throw new MALException(ENCODING_EXCEPTION_STR, ex);
}
}
代码示例来源:origin: int.esa.nmf.core/helper-tools
bis = new ByteArrayInputStream(obj.getValue());
ObjectInput in = null;
try {
代码示例来源:origin: int.esa.nmf.core.moservices.api/platform
/**
* Returns a hash code for this object.
* @return a hash code value for this object.
*/
public int hashCode()
{
int hash = 7;
hash = 83 * hash + (content != null ? content.hashCode() : 0);
hash = 83 * hash + (creationDate != null ? creationDate.hashCode() : 0);
hash = 83 * hash + (dimension != null ? dimension.hashCode() : 0);
hash = 83 * hash + (format != null ? format.hashCode() : 0);
return hash;
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf
if (! objectBody.equals(other.objectBody))
代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-com
@Override
public Blob decodeBlob() throws MALException
{
return new Blob(sourceBuffer.getBytes());
}
代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-com
@Override
public void encodeNullableBlob(final Blob value) throws MALException
{
try
{
if ((null != value)
&& ((value.isURLBased() && (null != value.getURL()))
|| (!value.isURLBased() && (null != value.getValue()))))
{
outputStream.addNotNull();
encodeBlob(value);
}
else
{
outputStream.addIsNull();
}
}
catch (IOException ex)
{
throw new MALException(ENCODING_EXCEPTION_STR, ex);
}
}
代码示例来源:origin: int.esa.nmf.core/helper-tools
return Arrays.toString(((Blob) in).getValue());
} catch (MALException ex) {
代码示例来源:origin: int.esa.nmf.core.moservices.api/platform
if (! content.equals(other.content))
内容来源于网络,如有侵权,请联系作者删除!