summaryrefslogtreecommitdiff
path: root/gnu/CORBA/CDR/Vio.java
diff options
context:
space:
mode:
authorAudrius Meskauskas <audriusa@Bioinformatics.org>2005-08-28 11:23:35 +0000
committerAudrius Meskauskas <audriusa@Bioinformatics.org>2005-08-28 11:23:35 +0000
commit0c6db14fe37c570414a6f9d9ea41538675363ecc (patch)
tree92fb65bc25fa27c6bd9740628b816206cdd3e460 /gnu/CORBA/CDR/Vio.java
parent5d6e63e8fc39b60710c81700f3faa7cdd21eeb60 (diff)
downloadclasspath-0c6db14fe37c570414a6f9d9ea41538675363ecc.tar.gz
2005-08-28 <AudriusA@Bioinformatics.org>
* gnu/CORBA/Interceptor/ForwardRequestHolder.java, gnu/CORBA/Interceptor/gnuClientRequestInfo.java, gnu/CORBA/Interceptor/gnuIcCurrent.java, gnu/CORBA/Interceptor/gnuIorInfo.java, gnu/CORBA/Interceptor/gnuServerRequestInfo.java, gnu/CORBA/Interceptor/IORInterceptors.java, gnu/CORBA/Interceptor/ClientRequestInterceptors.java, gnu/CORBA/Interceptor/Registrator.java, gnu/CORBA/Interceptor/ServerRequestInterceptors.java, gnu/CORBA/GIOP/contextSupportingHeader.java, org/omg/PortableInterceptor/ClientRequestInfo.java, org/omg/PortableInterceptor/ClientRequestInfoOperations.java, org/omg/PortableInterceptor/ClientRequestInterceptor.java, org/omg/PortableInterceptor/ClientRequestInterceptorOperations.java, org/omg/PortableInterceptor/Current.java, org/omg/PortableInterceptor/CurrentHelper.java, org/omg/PortableInterceptor/CurrentOperations.java, org/omg/PortableInterceptor/ForwardRequest.java, org/omg/PortableInterceptor/ForwardRequestHelper.java, org/omg/PortableInterceptor/InvalidSlot.java, org/omg/PortableInterceptor/InvalidSlotHelper.java, org/omg/PortableInterceptor/ORBInitInfo.java, org/omg/PortableInterceptor/ORBInitInfoOperations.java, org/omg/PortableInterceptor/ORBInitializer.java, org/omg/PortableInterceptor/ORBInitializerOperations.java, org/omg/PortableInterceptor/PolicyFactory.java, org/omg/PortableInterceptor/PolicyFactoryOperations.java, org/omg/PortableInterceptor/RequestInfo.java, org/omg/PortableInterceptor/RequestInfoOperations.java, org/omg/PortableInterceptor/ServerRequestInfo.java, org/omg/PortableInterceptor/ServerRequestInfoOperations.java, org/omg/PortableInterceptor/ServerRequestInterceptor.java, org/omg/PortableInterceptor/ServerRequestInterceptorOperations.java, org/omg/PortableInterceptor/package.html: New files. * gnu/CORBA/ExceptionCreator.java, gnu/CORBA/Functional_ORB.java, gnu/CORBA/IOR.java, gnu/CORBA/IOR_Delegate.java, gnu/CORBA/ObjectCreator.java, gnu/CORBA/Restricted_ORB.java, gnu/CORBA/bufferedResponseHandler.java, gnu/CORBA/gnuCodecFactory.java, gnu/CORBA/gnuRequest.java, gnu/CORBA/primitiveArrayTypeCode.java, gnu/CORBA/primitiveTypeCode.java, gnu/CORBA/CDR/Vio.java, gnu/CORBA/CDR/cdrOutput.java, gnu/CORBA/DynAn/gnuDynAny.java, gnu/CORBA/DynAn/gnuDynEnum.java, gnu/CORBA/DynAn/gnuDynFixed.java, gnu/CORBA/DynAn/gnuDynValue.java, gnu/CORBA/GIOP/ReplyHeader.java, gnu/CORBA/GIOP/RequestHeader.java, gnu/CORBA/GIOP/ServiceContext.java, gnu/CORBA/GIOP/v1_0/RequestHeader.java, gnu/CORBA/Poa/LocalDelegate.java, gnu/CORBA/Poa/LocalRequest.java, gnu/CORBA/Poa/ORB_1_4.java, gnu/CORBA/Poa/gnuServantObject.java, gnu/CORBA/Poa/servantDelegate.java, org/omg/CORBA/ServiceDetailHelper.java, org/omg/CORBA/DynAnyPackage/Invalid.java, org/omg/CORBA/DynAnyPackage/InvalidSeq.java, org/omg/CORBA/DynAnyPackage/InvalidValue.java, org/omg/CORBA/DynAnyPackage/TypeMismatch.java, org/omg/DynamicAny/NameDynAnyPairSeqHelper.java, org/omg/DynamicAny/_DynAnyFactoryStub.java, org/omg/DynamicAny/_DynAnyStub.java, org/omg/DynamicAny/_DynArrayStub.java, org/omg/DynamicAny/_DynEnumStub.java, org/omg/DynamicAny/_DynFixedStub.java, org/omg/DynamicAny/_DynSequenceStub.java, org/omg/DynamicAny/_DynStructStub.java, org/omg/DynamicAny/_DynUnionStub.java, org/omg/DynamicAny/_DynValueStub.java, org/omg/IOP/ServiceContext.java, org/omg/IOP/TaggedComponentHelper.java, org/omg/IOP/TaggedProfileHelper.java, org/omg/PortableInterceptor/IORInfo.java, org/omg/PortableInterceptor/IORInfoOperations.java, org/omg/PortableInterceptor/IORInterceptor.java, org/omg/PortableInterceptor/IORInterceptorOperations.java, org/omg/PortableInterceptor/Interceptor.java, org/omg/PortableInterceptor/LOCATION_FORWARD.java, org/omg/PortableInterceptor/SUCCESSFUL.java, org/omg/PortableInterceptor/SYSTEM_EXCEPTION.java, org/omg/PortableInterceptor/TRANSPORT_RETRY.java, org/omg/PortableInterceptor/USER_EXCEPTION.java, org/omg/PortableInterceptor/ORBInitInfoPackage/DuplicateName.java, org/omg/PortableInterceptor/ORBInitInfoPackage/DuplicateNameHelper.java, org/omg/PortableInterceptor/ORBInitInfoPackage/InvalidName.java, org/omg/PortableInterceptor/ORBInitInfoPackage/InvalidNameHelper.java, org/omg/PortableInterceptor/ORBInitInfoPackage/ObjectIdHelper.java: Rewritten. * org/omg/CORBA/ORB.java, org/omg/CORBA/package.html, NEWS: Documentation update.
Diffstat (limited to 'gnu/CORBA/CDR/Vio.java')
-rw-r--r--gnu/CORBA/CDR/Vio.java54
1 files changed, 26 insertions, 28 deletions
diff --git a/gnu/CORBA/CDR/Vio.java b/gnu/CORBA/CDR/Vio.java
index d7a749dd6..0a37132b2 100644
--- a/gnu/CORBA/CDR/Vio.java
+++ b/gnu/CORBA/CDR/Vio.java
@@ -46,7 +46,7 @@ import org.omg.CORBA.DataOutputStream;
import org.omg.CORBA.MARSHAL;
import org.omg.CORBA.NO_IMPLEMENT;
import org.omg.CORBA.StringSeqHelper;
-import org.omg.CORBA.portable.*;
+import org.omg.CORBA.portable.BoxedValueHelper;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.OutputStream;
import org.omg.CORBA.portable.Streamable;
@@ -317,8 +317,8 @@ public abstract class Vio
* @throws MARSHAL if the reading has failed due any reason.
*/
public static Object read(InputStream input, Object value_instance,
- Object helper
- )
+ Object helper
+ )
{
try
{
@@ -399,8 +399,8 @@ public abstract class Vio
* @return the value that was read.
*/
private static Object read_instance(InputStream input, Object value,
- int value_tag, Object helper
- )
+ int value_tag, Object helper
+ )
{
try
{
@@ -507,8 +507,8 @@ public abstract class Vio
// Stating the interfaces that the USER should use.
throw new MARSHAL("The " + value.getClass().getName() +
- " must implement either StreamableValue or CustomValue."
- );
+ " must implement either StreamableValue or CustomValue."
+ );
// The negative end of state marker is expected from OMG standard.
// If the chunking is used, this marker is already extracted.
@@ -562,8 +562,8 @@ public abstract class Vio
* @throws MARSHAL if the writing failed due any reason.
*/
public static void write(OutputStream output, Serializable value,
- Class substitute
- )
+ Class substitute
+ )
{
// Write null if this is a null value.
if (value == null)
@@ -598,8 +598,8 @@ public abstract class Vio
* not null.
*/
public static void write(OutputStream output, Serializable value,
- Object helper
- )
+ Object helper
+ )
{
if (value == null)
output.write_long(vt_NULL);
@@ -627,8 +627,8 @@ public abstract class Vio
* if the value should be written unsing other methods.
*/
private static void write_instance(OutputStream output, Serializable value,
- String id, Object helper
- )
+ String id, Object helper
+ )
{
// This implementation always writes a single repository id.
// It never writes multiple repository ids and currently does not use
@@ -684,12 +684,11 @@ public abstract class Vio
// for the global boxed value type itself.
Method write =
helperClass.getMethod("write",
- new Class[]
- {
- org.omg.CORBA.portable.OutputStream.class,
- value.getClass()
- }
- );
+ new Class[]
+ {
+ org.omg.CORBA.portable.OutputStream.class, value.getClass()
+ }
+ );
write.invoke(null, new Object[] { outObj, value });
ok = true;
}
@@ -701,9 +700,8 @@ public abstract class Vio
// Stating the interfaces that the USER should use.
if (!ok)
throw new MARSHAL("The " + value.getClass().getName() +
- " must implement either StreamableValue" +
- " or CustomValue."
- );
+ " must implement either StreamableValue" + " or CustomValue."
+ );
}
if (USE_CHUNKING)
@@ -731,8 +729,7 @@ public abstract class Vio
*
* @throws NO_IMPLEMENT, always.
*/
- static void incorrect_plug_in(Throwable ex)
- throws NO_IMPLEMENT
+ static void incorrect_plug_in(Throwable ex) throws NO_IMPLEMENT
{
NO_IMPLEMENT no = new NO_IMPLEMENT("Incorrect CORBA plug-in");
no.initCause(ex);
@@ -749,10 +746,11 @@ public abstract class Vio
private static final void checkTag(int value_tag)
{
if ((value_tag < 0x7fffff00 || value_tag > 0x7fffffff) &&
- value_tag != vt_NULL && value_tag != vt_INDIRECTION
- )
+ value_tag != vt_NULL &&
+ value_tag != vt_INDIRECTION
+ )
throw new MARSHAL("Invalid value record, unsupported header tag: " +
- value_tag
- );
+ value_tag
+ );
}
} \ No newline at end of file