1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.location.cts.asn1.base; 18 19 import java.nio.ByteBuffer; 20 import java.util.Collection; 21 22 /** 23 */ 24 public class Asn1ParameterObject extends Asn1Object { 25 26 private Asn1Object realObject; 27 28 protected Asn1Object getRealObject() { 29 return realObject; 30 } 31 32 protected void setRealObject(Asn1Object realObject) { 33 this.realObject = realObject; 34 } 35 36 public static Collection<Asn1Tag> getPossibleFirstTags() { 37 throw new UnsupportedOperationException("Not implemented for BER"); 38 } 39 40 @Override Asn1Tag getDefaultTag() { 41 throw new UnsupportedOperationException("Not implemented for BER"); 42 } 43 44 @Override int getBerValueLength() { 45 throw new UnsupportedOperationException("Not implemented for BER"); 46 } 47 48 @Override void encodeBerValue(ByteBuffer buf) { 49 throw new UnsupportedOperationException("Not implemented for BER"); 50 } 51 52 @Override void decodeBerValue(ByteBuffer buf) { 53 throw new UnsupportedOperationException("Not implemented for BER"); 54 } 55 56 @Override public Iterable<BitStream> encodePerUnaligned() { 57 return realObject.encodePerUnaligned(); 58 } 59 60 @Override 61 public Iterable<BitStream> encodePerAligned() { 62 return realObject.encodePerAligned(); 63 } 64 65 @Override 66 public void decodePerUnaligned(BitStreamReader reader) { 67 realObject.decodePerUnaligned(reader); 68 } 69 70 @Override 71 public void decodePerAligned(BitStreamReader reader) { 72 realObject.decodePerAligned(reader); 73 } 74 } 75