本文整理了Java中org.ccsds.moims.mo.mal.structures.Blob.isURLBased()
方法的一些代码示例,展示了Blob.isURLBased()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Blob.isURLBased()
方法的具体详情如下:
包路径:org.ccsds.moims.mo.mal.structures.Blob
类名称:Blob
方法名:isURLBased
暂无
代码示例来源: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.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.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.ccsds.mo/ENCODING_GEN
@Override
public void encodeBlob(final Blob value) throws MALException
{
try
{
checkForNull(value);
if (value.isURLBased())
{
checkForNull(value.getURL());
}
else
{
checkForNull(value.getValue());
}
outputStream.addBytes(value.getValue());
}
catch (IOException ex)
{
throw new MALException(ENCODING_EXCEPTION_STR, ex);
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-com
@Override
public void encodeBlob(final Blob value) throws MALException
{
try
{
checkForNull(value);
if (value.isURLBased())
{
checkForNull(value.getURL());
}
else
{
checkForNull(value.getValue());
}
outputStream.addBytes(value.getValue());
}
catch (IOException ex)
{
throw new MALException(ENCODING_EXCEPTION_STR, ex);
}
}
内容来源于网络,如有侵权,请联系作者删除!