/** * Insert a literal binary sequence. * * @param text * the binary to insert. * @return true if the insert fits within the limit; false if the insert * would cause the instruction stream to exceed the limit. * @throws java.io.IOException * the instruction buffer can't store the instructions. */ public boolean insert(byte[] text) throws IOException { return insert(text, 0, text.length); }
/** * Insert a literal string of text, in UTF-8 encoding. * * @param text * the string to insert. * @return true if the insert fits within the limit; false if the insert * would cause the instruction stream to exceed the limit. * @throws java.io.IOException * the instruction buffer can't store the instructions. */ public boolean insert(String text) throws IOException { return insert(Constants.encode(text)); }
/** * Insert a literal binary sequence. * * @param text * the binary to insert. * @return true if the insert fits within the limit; false if the insert * would cause the instruction stream to exceed the limit. * @throws java.io.IOException * the instruction buffer can't store the instructions. */ public boolean insert(byte[] text) throws IOException { return insert(text, 0, text.length); }
/** * Insert a literal binary sequence. * * @param text * the binary to insert. * @return true if the insert fits within the limit; false if the insert * would cause the instruction stream to exceed the limit. * @throws IOException * the instruction buffer can't store the instructions. */ public boolean insert(byte[] text) throws IOException { return insert(text, 0, text.length); }
/** * Insert a literal string of text, in UTF-8 encoding. * * @param text * the string to insert. * @return true if the insert fits within the limit; false if the insert * would cause the instruction stream to exceed the limit. * @throws IOException * the instruction buffer can't store the instructions. */ public boolean insert(String text) throws IOException { return insert(Constants.encode(text)); }
/** * Insert a literal string of text, in UTF-8 encoding. * * @param text * the string to insert. * @return true if the insert fits within the limit; false if the insert * would cause the instruction stream to exceed the limit. * @throws java.io.IOException * the instruction buffer can't store the instructions. */ public boolean insert(String text) throws IOException { return insert(Constants.encode(text)); }