Package org.torproject.descriptor
Interface UnparseableDescriptor
- All Superinterfaces:
Descriptor,java.io.Serializable
public interface UnparseableDescriptor extends Descriptor
Contains a descriptor that could not be parsed.
Only
Descriptor.getRawDescriptorBytes() and
Descriptor.getDescriptorFile() are supported.- Since:
- 1.9.0
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>getAnnotations()Will always throw anUnsupportedOperationException.DescriptorParseExceptiongetDescriptorParseException()Return the first exception thrown while attempting to parse this descriptor.java.util.List<java.lang.String>getUnrecognizedLines()Will always throw anUnsupportedOperationException.Methods inherited from interface org.torproject.descriptor.Descriptor
getDescriptorFile, getRawDescriptorBytes, getRawDescriptorLength
-
Method Details
-
getDescriptorParseException
DescriptorParseException getDescriptorParseException()Return the first exception thrown while attempting to parse this descriptor.- Returns:
- First exception thrown.
- Since:
- 1.9.0
-
getAnnotations
java.util.List<java.lang.String> getAnnotations()Will always throw anUnsupportedOperationException.- Specified by:
getAnnotationsin interfaceDescriptor- Since:
- 1.9.0
-
getUnrecognizedLines
java.util.List<java.lang.String> getUnrecognizedLines()Will always throw anUnsupportedOperationException.- Specified by:
getUnrecognizedLinesin interfaceDescriptor- Since:
- 1.9.0
-