public class NetRC
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NetRC.NetRCEntry
.netrc file entry
|
Constructor and Description |
---|
NetRC(java.io.File netrc) |
NetRC(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<NetRC.NetRCEntry> |
getEntries() |
NetRC.NetRCEntry |
getEntry(java.lang.String host)
Get entry by host name
|
public NetRC(java.lang.String filename) throws java.io.IOException
java.io.IOException
public NetRC(java.io.File netrc)
netrc
- the .netrc filepublic NetRC.NetRCEntry getEntry(java.lang.String host)
host
- public java.util.Collection<NetRC.NetRCEntry> getEntries()