Package org.ajoberstar.grgit.auth
Class GrgitSystemReader
- java.lang.Object
-
- org.eclipse.jgit.util.SystemReader
-
- org.ajoberstar.grgit.auth.GrgitSystemReader
-
public class GrgitSystemReader extends org.eclipse.jgit.util.SystemReader
-
-
Constructor Summary
Constructors Constructor Description GrgitSystemReader(org.eclipse.jgit.util.SystemReader delegate, java.lang.String gitSsh)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkPath(byte[] path)
void
checkPath(java.lang.String path)
org.eclipse.jgit.util.time.MonotonicClock
getClock()
long
getCurrentTime()
java.text.DateFormat
getDateTimeInstance(int dateStyle, int timeStyle)
java.lang.String
getenv(java.lang.String variable)
java.lang.String
getHostname()
java.util.Locale
getLocale()
java.lang.String
getProperty(java.lang.String key)
java.text.SimpleDateFormat
getSimpleDateFormat(java.lang.String pattern)
java.text.SimpleDateFormat
getSimpleDateFormat(java.lang.String pattern, java.util.Locale locale)
int
getTimezone(long when)
java.util.TimeZone
getTimeZone()
static void
install()
boolean
isMacOS()
boolean
isWindows()
org.eclipse.jgit.storage.file.FileBasedConfig
openJGitConfig(org.eclipse.jgit.lib.Config parent, org.eclipse.jgit.util.FS fs)
org.eclipse.jgit.storage.file.FileBasedConfig
openSystemConfig(org.eclipse.jgit.lib.Config parent, org.eclipse.jgit.util.FS fs)
org.eclipse.jgit.storage.file.FileBasedConfig
openUserConfig(org.eclipse.jgit.lib.Config parent, org.eclipse.jgit.util.FS fs)
-
-
-
Method Detail
-
getHostname
public java.lang.String getHostname()
- Specified by:
getHostname
in classorg.eclipse.jgit.util.SystemReader
-
getenv
public java.lang.String getenv(java.lang.String variable)
- Specified by:
getenv
in classorg.eclipse.jgit.util.SystemReader
-
getProperty
public java.lang.String getProperty(java.lang.String key)
- Specified by:
getProperty
in classorg.eclipse.jgit.util.SystemReader
-
openJGitConfig
public org.eclipse.jgit.storage.file.FileBasedConfig openJGitConfig(org.eclipse.jgit.lib.Config parent, org.eclipse.jgit.util.FS fs)
- Specified by:
openJGitConfig
in classorg.eclipse.jgit.util.SystemReader
-
openUserConfig
public org.eclipse.jgit.storage.file.FileBasedConfig openUserConfig(org.eclipse.jgit.lib.Config parent, org.eclipse.jgit.util.FS fs)
- Specified by:
openUserConfig
in classorg.eclipse.jgit.util.SystemReader
-
openSystemConfig
public org.eclipse.jgit.storage.file.FileBasedConfig openSystemConfig(org.eclipse.jgit.lib.Config parent, org.eclipse.jgit.util.FS fs)
- Specified by:
openSystemConfig
in classorg.eclipse.jgit.util.SystemReader
-
getCurrentTime
public long getCurrentTime()
- Specified by:
getCurrentTime
in classorg.eclipse.jgit.util.SystemReader
-
getClock
public org.eclipse.jgit.util.time.MonotonicClock getClock()
- Overrides:
getClock
in classorg.eclipse.jgit.util.SystemReader
-
getTimezone
public int getTimezone(long when)
- Specified by:
getTimezone
in classorg.eclipse.jgit.util.SystemReader
-
getTimeZone
public java.util.TimeZone getTimeZone()
- Overrides:
getTimeZone
in classorg.eclipse.jgit.util.SystemReader
-
getLocale
public java.util.Locale getLocale()
- Overrides:
getLocale
in classorg.eclipse.jgit.util.SystemReader
-
getSimpleDateFormat
public java.text.SimpleDateFormat getSimpleDateFormat(java.lang.String pattern)
- Overrides:
getSimpleDateFormat
in classorg.eclipse.jgit.util.SystemReader
-
getSimpleDateFormat
public java.text.SimpleDateFormat getSimpleDateFormat(java.lang.String pattern, java.util.Locale locale)
- Overrides:
getSimpleDateFormat
in classorg.eclipse.jgit.util.SystemReader
-
getDateTimeInstance
public java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle)
- Overrides:
getDateTimeInstance
in classorg.eclipse.jgit.util.SystemReader
-
isWindows
public boolean isWindows()
- Overrides:
isWindows
in classorg.eclipse.jgit.util.SystemReader
-
isMacOS
public boolean isMacOS()
- Overrides:
isMacOS
in classorg.eclipse.jgit.util.SystemReader
-
checkPath
public void checkPath(java.lang.String path) throws org.eclipse.jgit.errors.CorruptObjectException
- Overrides:
checkPath
in classorg.eclipse.jgit.util.SystemReader
- Throws:
org.eclipse.jgit.errors.CorruptObjectException
-
checkPath
public void checkPath(byte[] path) throws org.eclipse.jgit.errors.CorruptObjectException
- Overrides:
checkPath
in classorg.eclipse.jgit.util.SystemReader
- Throws:
org.eclipse.jgit.errors.CorruptObjectException
-
install
public static void install()
-
-