public ByteProperties create(Map<String, Object> properties, String listSepChars) { return new ByteProperties(properties, listSepChars); }
/** * Returns a data from a ROT13 property string. * * @param key * the property key. * * @return the {@link Byte} array data. */ public byte[] getDataProperty(String key) { return byteProperties.getDataProperty(key); }
/** * Returns a data from a ROT13 property string as a stream. * * @param key * the property key. * * @return the {@link InputStream} data. */ public InputStream getDataPropertyStream(String key) { return byteProperties.getDataPropertyStream(key); }
/** * Returns a data from a ROT13 property string. * * @param key * the property key. * * @return the {@link Byte} array data. */ public byte[] getDataProperty(String key) { String property = getProperty(key); byte[] data = (byte[]) new XStream().fromXML(property); return data; }
/** * Returns a data from a ROT13 property string as a stream. * * @param key * the property key. * * @return the {@link InputStream} data. */ public InputStream getDataPropertyStream(String key) { String property = getProperty(key); byte[] data = (byte[]) new XStream().fromXML(property); return new ByteArrayInputStream(data); }
/** * Sets the context and the properties. * * @param context * an {@link Object} that is used as the context. * * @param parentProperties * the {@link Properties} that are returned. */ public ByteContextProperties(Object context, Properties parentProperties) { super(context, parentProperties); this.byteProperties = new ByteProperties(this); }
/** * Sets the context and the properties. * * @param context * an {@link Class} that is used as the context. * * @param parentProperties * the {@link Properties} that are returned. */ public ByteContextProperties(Class<?> context, Properties parentProperties) { super(context, parentProperties); this.byteProperties = new ByteProperties(this); }
/** * Sets the context and the properties. * * @param context * the context. * * @param parentProperties * the {@link Properties} that are returned. */ public ByteContextProperties(String context, Properties parentProperties) { super(context, parentProperties); this.byteProperties = new ByteProperties(this); }
public ByteProperties create(Properties properties) { return new ByteProperties(properties); } }
public ByteProperties create(Map<String, Object> properties) { return new ByteProperties(properties); }
public ByteProperties create(Properties properties, String listSepChars) { return new ByteProperties(properties, listSepChars); }