Interface XStreamFactory
-
- All Known Implementing Classes:
CustomizableXStreamFactory
,SecureXStreamFactory
public interface XStreamFactory
Creates custom instances ofXStream
.- Since:
- v3.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull com.thoughtworks.xstream.XStream
createCompactXStream()
CreateXStream
backed by given classLoader and driver.@NotNull com.thoughtworks.xstream.XStream
createXStream()
Create default instance of XStream.@NotNull com.thoughtworks.xstream.XStream
createXStream(@Nullable ClassLoader classLoader)
CreateXStream
backed by given classLoader.
-
-
-
Method Detail
-
createXStream
@NotNull @NotNull com.thoughtworks.xstream.XStream createXStream()
Create default instance of XStream.- Returns:
- new XStream instance
-
createXStream
@NotNull @NotNull com.thoughtworks.xstream.XStream createXStream(@Nullable @Nullable ClassLoader classLoader)
CreateXStream
backed by given classLoader.- Parameters:
classLoader
- class loader to use by the created XStream, ifnull
, the default classloader will be used- Returns:
- new XStream instance
-
createCompactXStream
@NotNull @NotNull com.thoughtworks.xstream.XStream createCompactXStream()
CreateXStream
backed by given classLoader and driver.- Returns:
- new XStream instance
- See Also:
HierarchicalStreamDriver
-
-