1 package org.bouncycastle.util; 2 3 import java.io.IOException; 4 5 /** 6 * Interface implemented by objects that can be converted into byte arrays. 7 */ 8 public interface Encodable 9 { 10 /** 11 * Return a byte array representing the implementing object. 12 * 13 * @return a byte array representing the encoding. 14 * @throws java.io.IOException if an issue arises generation the encoding. 15 */ getEncoded()16 byte[] getEncoded() 17 throws IOException; 18 } 19