public class Bundles extends Object
Constructor and Description |
---|
Bundles() |
Modifier and Type | Method and Description |
---|---|
static void |
closeAndSaveBundle(Bundle bundle,
Path destination) |
static Path |
closeBundle(Bundle bundle) |
static void |
copyRecursively(Path source,
Path destination,
CopyOption... copyOptions) |
static Bundle |
createBundle() |
static Bundle |
createBundle(Path path) |
static void |
deleteRecursively(Path p) |
protected static String |
filenameWithoutExtension(Path entry) |
static Path |
getAnnotations(Bundle bundle) |
static Path |
getManifestPath(Bundle bundle) |
static String |
getMimeType(Bundle bundle) |
static URI |
getReference(Path path) |
static String |
getStringValue(Path path) |
static boolean |
isMissing(Path item) |
static boolean |
isReference(Path path) |
static boolean |
isValue(Path path) |
static Bundle |
openBundle(InputStream in) |
static Bundle |
openBundle(Path zip) |
static Bundle |
openBundle(URL url) |
static Bundle |
openBundleReadOnly(Path zip) |
static void |
safeCopy(Path source,
Path destination) |
static void |
safeMove(Path source,
Path destination) |
protected static void |
safeMoveOrCopy(Path source,
Path destination,
boolean move) |
static void |
setMimeType(Bundle bundle,
String mimetype) |
static Path |
setReference(Path path,
URI ref) |
static void |
setStringValue(Path path,
String string) |
static Path |
uriToBundlePath(Bundle bundle,
URI uri) |
protected static Path |
withExtension(Path path,
String extension) |
protected static final String DOT_URL
public static void closeAndSaveBundle(Bundle bundle, Path destination) throws IOException
IOException
public static Path closeBundle(Bundle bundle) throws IOException
IOException
public static void copyRecursively(Path source, Path destination, CopyOption... copyOptions) throws IOException
IOException
public static Bundle createBundle() throws IOException
IOException
public static Bundle createBundle(Path path) throws IOException
IOException
public static void deleteRecursively(Path p) throws IOException
IOException
public static Path getAnnotations(Bundle bundle) throws IOException
IOException
public static String getMimeType(Bundle bundle) throws IOException
IOException
public static URI getReference(Path path) throws IOException
IOException
public static String getStringValue(Path path) throws IOException
IOException
public static boolean isMissing(Path item)
public static boolean isReference(Path path)
public static boolean isValue(Path path)
public static Bundle openBundle(InputStream in) throws IOException
IOException
public static Bundle openBundle(Path zip) throws IOException
IOException
public static Bundle openBundle(URL url) throws IOException
IOException
public static Bundle openBundleReadOnly(Path zip) throws IOException
IOException
public static void safeCopy(Path source, Path destination) throws IOException
IOException
public static void safeMove(Path source, Path destination) throws IOException
IOException
protected static void safeMoveOrCopy(Path source, Path destination, boolean move) throws IOException
IOException
public static void setMimeType(Bundle bundle, String mimetype) throws IOException
IOException
public static Path setReference(Path path, URI ref) throws IOException
IOException
public static void setStringValue(Path path, String string) throws IOException
IOException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.