/** * @param aList a list of parameters for this component * @param aValue a value string for this component * @throws URISyntaxException where the specified string is not a valid uri */ public Attach(final ParameterList aList, final String aValue) throws URISyntaxException { super(ATTACH, aList, new Factory()); setValue(aValue); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component * @throws IOException when there is an error reading the binary stream * @throws URISyntaxException where the specified string is not a valid uri */ public Attach(final ParameterList aList, final String aValue) throws IOException, URISyntaxException { super(ATTACH, aList, PropertyFactoryImpl.getInstance()); setValue(aValue); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component * @throws IOException when there is an error reading the binary stream * @throws URISyntaxException where the specified string is not a valid uri */ public Attach(final ParameterList aList, final String aValue) throws IOException, URISyntaxException { super(ATTACH, aList, PropertyFactoryImpl.getInstance()); setValue(aValue); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component * @throws IOException when there is an error reading the binary stream * @throws URISyntaxException where the specified string is not a valid uri */ public Attach(final ParameterList aList, final String aValue) throws IOException, URISyntaxException { super(ATTACH, aList, PropertyFactoryImpl.getInstance()); setValue(aValue); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component * @throws URISyntaxException where the specified string is not a valid uri */ public Attach(final ParameterList aList, final String aValue) throws URISyntaxException { super(ATTACH, aList, new Factory()); setValue(aValue); }
/** * Unit testing of serialization. */ public void testSerialization() throws IOException, ClassNotFoundException, URISyntaxException { ByteArrayOutputStream bout = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(bout); out.writeObject(attach); ObjectInputStream in = new ObjectInputStream( new ByteArrayInputStream(bout.toByteArray())); Attach clone = (Attach) in.readObject(); assertNotNull(clone); assertEquals(attach, clone); // set a bogus value to trigger logging.. clone.getParameters().replace(new Encoding("BOGUS")); clone.setValue(""); } }