public class Support extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
Support() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream in,
OutputStream out)
Copy in into out and close streams safely.
|
static com.google.common.base.Predicate<Bundle> |
efficientAndPredicate(List<com.google.common.base.Predicate<Bundle>> predicates)
Join list of predicates with AND operand.
|
static boolean |
equals(Object a,
Object b)
Helper to check for equality without bothering to handle nulls.
|
static com.atlassian.sourcemap.SourceMap |
getSourceMap(String resourcePath,
Resource resource,
String sourceUrl) |
static String |
indent(String string,
String indent)
Indent string, multiline also supported.
|
static String |
inspect(Content content) |
static void |
logIOException(IOException e) |
static org.dom4j.Element |
parseXml(String xml)
Parses XML.
|
static com.atlassian.sourcemap.SourceMap |
replaceSourceUrl(com.atlassian.sourcemap.SourceMap sourceMap,
String sourceUrl)
Replaces source url in source map.
|
public static com.google.common.base.Predicate<Bundle> efficientAndPredicate(List<com.google.common.base.Predicate<Bundle>> predicates)
public static String indent(String string, String indent)
public static boolean equals(Object a, Object b)
public static void copy(InputStream in, OutputStream out)
public static void logIOException(IOException e)
public static org.dom4j.Element parseXml(String xml)
public static com.atlassian.sourcemap.SourceMap replaceSourceUrl(com.atlassian.sourcemap.SourceMap sourceMap,
String sourceUrl)
public static com.atlassian.sourcemap.SourceMap getSourceMap(String resourcePath, Resource resource, String sourceUrl)
Copyright © 2019 Atlassian. All rights reserved.