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