public class SVNTranslator
extends java.lang.Object
Constructor and Description |
---|
SVNTranslator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkNewLines(java.io.File file) |
static java.util.Map<java.lang.String,byte[]> |
computeKeywords(java.lang.String keywords,
java.lang.String u,
java.lang.String a,
java.lang.String d,
java.lang.String r,
ISVNOptions options) |
static void |
copy(java.io.InputStream src,
java.io.OutputStream dst) |
static void |
copyAndTranslate(java.io.File source,
java.io.File destination,
java.lang.String charset,
byte[] eol,
java.util.Map<java.lang.String,byte[]> keywords,
boolean special,
boolean expand,
boolean repair) |
static java.io.File |
detranslateWorkingCopy(SVNAdminArea dir,
java.lang.String name,
SVNProperties propDiff,
boolean force) |
static byte[] |
getBaseEOL(java.lang.String eolStyle) |
static java.lang.String |
getCharset(java.lang.String charset,
java.lang.String mimeType,
java.lang.Object path,
ISVNOptions options) |
static byte[] |
getEOL(java.lang.String eolStyle,
ISVNOptions options) |
static java.nio.charset.CodingErrorAction |
getOnMalformedInputAction() |
static java.nio.charset.CodingErrorAction |
getOnUnmappableCharacterAction() |
static java.io.File |
getTranslatedFile(SVNAdminArea dir,
java.lang.String name,
java.io.File src,
boolean forceEOLRepair,
boolean useGlobalTmp,
boolean forceCopy,
boolean toNormalFormat) |
static java.io.InputStream |
getTranslatedStream(SVNAdminArea adminArea,
java.lang.String name,
boolean translateToNormalForm,
boolean repairEOL) |
static java.io.InputStream |
getTranslatingInputStream(java.io.InputStream in,
java.lang.String charset,
byte[] eol,
boolean repair,
java.util.Map<java.lang.String,byte[]> keywords,
boolean expand) |
static java.io.OutputStream |
getTranslatingOutputStream(java.io.OutputStream out,
java.lang.String charset,
byte[] eol,
boolean repair,
java.util.Map<java.lang.String,byte[]> keywords,
boolean expand) |
static java.io.File |
maybeUpdateTargetEOLs(SVNAdminArea dir,
java.io.File target,
SVNProperties propDiff) |
static void |
setEncoderActions(java.nio.charset.CodingErrorAction onMalformedInput,
java.nio.charset.CodingErrorAction onUnmappableCharacter) |
static void |
translate(java.io.File src,
java.io.File dst,
java.lang.String charset,
byte[] eol,
java.util.Map<java.lang.String,byte[]> keywords,
boolean special,
boolean expand) |
static void |
translate(SVNAdminArea adminArea,
java.lang.String name,
java.io.File src,
java.io.File dst,
boolean expand) |
static void |
translate(SVNAdminArea adminArea,
java.lang.String name,
java.io.File src,
java.io.File dst,
boolean safelyEncode,
boolean expand) |
static void |
translate(SVNAdminArea adminArea,
java.lang.String name,
java.io.File src,
java.io.File dst,
java.lang.String customEOLStyle,
boolean expand) |
static void |
translate(SVNAdminArea adminArea,
java.lang.String name,
java.io.File src,
java.io.File dst,
java.lang.String customEOLStyle,
boolean safelyEncode,
boolean expand) |
static void |
translate(SVNAdminArea adminArea,
java.lang.String name,
java.lang.String srcPath,
java.lang.String dstPath,
boolean expand) |
static void |
translate(SVNAdminArea adminArea,
java.lang.String name,
java.lang.String srcPath,
java.lang.String dstPath,
boolean safelyEncode,
boolean expand) |
static void |
translate(SVNAdminArea adminArea,
java.lang.String name,
java.lang.String srcPath,
java.lang.String dstPath,
java.lang.String customEOLStyle,
boolean expand) |
static java.lang.String |
translateString(java.lang.String str,
byte[] eol,
java.util.Map<java.lang.String,byte[]> keywords,
boolean repair,
boolean expand) |
static void |
translationError(java.io.File path,
java.io.IOException e) |
public static java.lang.String translateString(java.lang.String str, byte[] eol, java.util.Map<java.lang.String,byte[]> keywords, boolean repair, boolean expand) throws SVNException
SVNException
public static void translate(SVNAdminArea adminArea, java.lang.String name, java.lang.String srcPath, java.lang.String dstPath, boolean expand) throws SVNException
SVNException
public static void translate(SVNAdminArea adminArea, java.lang.String name, java.lang.String srcPath, java.lang.String dstPath, boolean safelyEncode, boolean expand) throws SVNException
SVNException
public static void translate(SVNAdminArea adminArea, java.lang.String name, java.lang.String srcPath, java.lang.String dstPath, java.lang.String customEOLStyle, boolean expand) throws SVNException
SVNException
public static void translate(SVNAdminArea adminArea, java.lang.String name, java.io.File src, java.io.File dst, boolean expand) throws SVNException
SVNException
public static void translate(SVNAdminArea adminArea, java.lang.String name, java.io.File src, java.io.File dst, boolean safelyEncode, boolean expand) throws SVNException
SVNException
public static void translate(SVNAdminArea adminArea, java.lang.String name, java.io.File src, java.io.File dst, java.lang.String customEOLStyle, boolean expand) throws SVNException
SVNException
public static void translate(SVNAdminArea adminArea, java.lang.String name, java.io.File src, java.io.File dst, java.lang.String customEOLStyle, boolean safelyEncode, boolean expand) throws SVNException
SVNException
public static void translate(java.io.File src, java.io.File dst, java.lang.String charset, byte[] eol, java.util.Map<java.lang.String,byte[]> keywords, boolean special, boolean expand) throws SVNException
SVNException
public static java.io.InputStream getTranslatedStream(SVNAdminArea adminArea, java.lang.String name, boolean translateToNormalForm, boolean repairEOL) throws SVNException
SVNException
public static java.io.File getTranslatedFile(SVNAdminArea dir, java.lang.String name, java.io.File src, boolean forceEOLRepair, boolean useGlobalTmp, boolean forceCopy, boolean toNormalFormat) throws SVNException
SVNException
public static java.io.File maybeUpdateTargetEOLs(SVNAdminArea dir, java.io.File target, SVNProperties propDiff) throws SVNException
SVNException
public static java.io.File detranslateWorkingCopy(SVNAdminArea dir, java.lang.String name, SVNProperties propDiff, boolean force) throws SVNException
SVNException
public static void copyAndTranslate(java.io.File source, java.io.File destination, java.lang.String charset, byte[] eol, java.util.Map<java.lang.String,byte[]> keywords, boolean special, boolean expand, boolean repair) throws SVNException
SVNException
public static boolean checkNewLines(java.io.File file)
public static void copy(java.io.InputStream src, java.io.OutputStream dst) throws java.io.IOException
java.io.IOException
public static java.io.OutputStream getTranslatingOutputStream(java.io.OutputStream out, java.lang.String charset, byte[] eol, boolean repair, java.util.Map<java.lang.String,byte[]> keywords, boolean expand)
public static java.io.InputStream getTranslatingInputStream(java.io.InputStream in, java.lang.String charset, byte[] eol, boolean repair, java.util.Map<java.lang.String,byte[]> keywords, boolean expand)
public static java.util.Map<java.lang.String,byte[]> computeKeywords(java.lang.String keywords, java.lang.String u, java.lang.String a, java.lang.String d, java.lang.String r, ISVNOptions options)
public static byte[] getEOL(java.lang.String eolStyle, ISVNOptions options)
public static byte[] getBaseEOL(java.lang.String eolStyle)
public static java.lang.String getCharset(java.lang.String charset, java.lang.String mimeType, java.lang.Object path, ISVNOptions options) throws SVNException
SVNException
public static void translationError(java.io.File path, java.io.IOException e) throws SVNException
SVNException
public static java.nio.charset.CodingErrorAction getOnMalformedInputAction()
public static java.nio.charset.CodingErrorAction getOnUnmappableCharacterAction()
public static void setEncoderActions(java.nio.charset.CodingErrorAction onMalformedInput, java.nio.charset.CodingErrorAction onUnmappableCharacter)
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.