public int decode(InputStream is, BerTag berTag) throws IOException { int codeLength = 0; BerTag passedTag = berTag; if (berTag == null) { berTag = new BerTag(); codeLength += berTag.decode(is); } if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 0)) { vmdSpecific = new BerNull(); codeLength += vmdSpecific.decode(is, false); return codeLength; } if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 1)) { domainSpecific = new Identifier(); codeLength += domainSpecific.decode(is, false); return codeLength; } if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 2)) { aaSpecific = new BerNull(); codeLength += aaSpecific.decode(is, false); return codeLength; } if (passedTag != null) { return 0; } throw new IOException("Error decoding CHOICE: Tag " + berTag + " matched to no item."); }
@Override public int encode(OutputStream reverseOS) throws IOException { return encode(reverseOS, true); }
@Override TypeDescription getMmsTypeSpec() { TypeDescription typeDescription = new TypeDescription(); typeDescription.setUtcTime(new BerNull()); return typeDescription; }
@Override public int decode(InputStream is) throws IOException { return decode(is, true); }
@Override TypeDescription getMmsTypeSpec() { TypeDescription typeDescription = new TypeDescription(); typeDescription.setBool(new BerNull()); return typeDescription; }
@Override public int decode(InputStream is) throws IOException { return decode(is, true); }
public int decode(InputStream is, BerTag berTag) throws IOException { int codeLength = 0; BerTag passedTag = berTag; if (berTag == null) { berTag = new BerTag(); codeLength += berTag.decode(is); } if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 0)) { vmdSpecific = new BerNull(); codeLength += vmdSpecific.decode(is, false); return codeLength; } if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 1)) { domainSpecific = new Identifier(); codeLength += domainSpecific.decode(is, false); return codeLength; } if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 2)) { aaSpecific = new BerNull(); codeLength += aaSpecific.decode(is, false); return codeLength; } if (passedTag != null) { return 0; } throw new IOException("Error decoding CHOICE: Tag " + berTag + " matched to no item."); }
@Override public int encode(OutputStream reverseOS) throws IOException { return encode(reverseOS, true); }
@Override TypeDescription getMmsTypeSpec() { TypeDescription typeDescription = new TypeDescription(); typeDescription.setUtcTime(new BerNull()); return typeDescription; }
@Override public int decode(InputStream is) throws IOException { return decode(is, true); }
public int decode(InputStream is, BerTag berTag) throws IOException { int codeLength = 0; BerTag passedTag = berTag; if (berTag == null) { berTag = new BerTag(); codeLength += berTag.decode(is); } if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 0)) { failure = new DataAccessError(); codeLength += failure.decode(is, false); return codeLength; } if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 1)) { success = new BerNull(); codeLength += success.decode(is, false); return codeLength; } if (passedTag != null) { return 0; } throw new IOException("Error decoding CHOICE: Tag " + berTag + " matched to no item."); }
@Override public int encode(OutputStream reverseOS) throws IOException { return encode(reverseOS, true); }
@Override TypeDescription getMmsTypeSpec() { TypeDescription typeDescription = new TypeDescription(); typeDescription.setBool(new BerNull()); return typeDescription; }
public int decode(InputStream is, boolean withTag) throws IOException { int codeLength = 0; if (withTag) { codeLength += tag.decodeAndCheck(is); } codeLength += super.decode(is, false); return codeLength; }
public int decode(InputStream is, BerTag berTag) throws IOException { int codeLength = 0; BerTag passedTag = berTag; if (berTag == null) { berTag = new BerTag(); codeLength += berTag.decode(is); } if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 0)) { failure = new DataAccessError(); codeLength += failure.decode(is, false); return codeLength; } if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 1)) { success = new BerNull(); codeLength += success.decode(is, false); return codeLength; } if (passedTag != null) { return 0; } throw new IOException("Error decoding CHOICE: Tag " + berTag + " matched to no item."); }
private ConfirmedServiceRequest constructGetServerDirectoryRequest() { ObjectClass objectClass = new ObjectClass(); objectClass.setBasicObjectClass(new BerInteger(9)); GetNameListRequest.ObjectScope objectScope = new GetNameListRequest.ObjectScope(); objectScope.setVmdSpecific(new BerNull()); GetNameListRequest getNameListRequest = new GetNameListRequest(); getNameListRequest.setObjectClass(objectClass); getNameListRequest.setObjectScope(objectScope); ConfirmedServiceRequest confirmedServiceRequest = new ConfirmedServiceRequest(); confirmedServiceRequest.setGetNameList(getNameListRequest); return confirmedServiceRequest; }
private ConfirmedServiceRequest constructGetServerDirectoryRequest() { ObjectClass objectClass = new ObjectClass(); objectClass.setBasicObjectClass(new BerInteger(9)); GetNameListRequest.ObjectScope objectScope = new GetNameListRequest.ObjectScope(); objectScope.setVmdSpecific(new BerNull()); GetNameListRequest getNameListRequest = new GetNameListRequest(); getNameListRequest.setObjectClass(objectClass); getNameListRequest.setObjectScope(objectScope); ConfirmedServiceRequest confirmedServiceRequest = new ConfirmedServiceRequest(); confirmedServiceRequest.setGetNameList(getNameListRequest); return confirmedServiceRequest; }