public class PasswordRecordTemplate
extends java.lang.Object
Password Record Template
A password record template is a plain text file which contains one line for each password record field.! | Type Name |
$ | Type Text |
# | Type Date |
* | Type Password |
% | Type Integer |
@ | Type e-Mail |
& | Type URL |
~ | Type Postal Address |
/ | Type Binary |
Constructor and Description |
---|
PasswordRecordTemplate() |
Modifier and Type | Method and Description |
---|---|
PasswordRecord |
createRecord()
Create a new password record for this template
|
java.lang.String |
getName() |
char |
getTypeOf(java.lang.String sLineId) |
java.util.ArrayList<PasswordRecordLine> |
lines() |
void |
load(java.lang.String sFilePath)
Load template from UTF-8 text file
|
void |
parse(java.lang.String sText)
Parse template from string
|
void |
store(java.lang.String sFilePath)
Store template into a text file encoded in UTF-8 character set
|
public java.lang.String getName()
public char getTypeOf(java.lang.String sLineId)
public PasswordRecord createRecord()
public java.util.ArrayList<PasswordRecordLine> lines()
public void parse(java.lang.String sText) throws java.lang.NullPointerException
java.lang.NullPointerException
public void load(java.lang.String sFilePath) throws java.net.MalformedURLException, com.enterprisedt.net.ftp.FTPException, java.io.FileNotFoundException, java.io.IOException
File
- Path including protocol, for example: file:///tmp/template1.txtjava.net.MalformedURLException
com.enterprisedt.net.ftp.FTPException
java.io.IOException
java.io.FileNotFoundException
public void store(java.lang.String sFilePath) throws java.net.MalformedURLException, com.enterprisedt.net.ftp.FTPException, java.io.IOException
File
- Path including protocol, for example: file:///tmp/template1.txtjava.net.MalformedURLException
com.enterprisedt.net.ftp.FTPException
java.io.IOException