Class DataSourcesUtil
java.lang.Object
slash.navigation.datasources.helpers.DataSourcesUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BoundingBoxasBoundingBox(BoundingBoxType boundingBox) static BoundingBoxTypeasBoundingBoxType(BoundingBox boundingBox) static ChecksumasChecksum(ChecksumType checksumType) asChecksums(Set<FileAndChecksum> fileAndChecksums) static DatasourceTypeasDatasourceType(DataSource dataSource) static StringasMetaDataComparablePath(File file) static ChecksumTypecreateChecksumType(CompactCalendar lastModified, Long contentLength, String sha1) static FileTypecreateFileType(String uri, List<Checksum> checksums, BoundingBox boundingBox) static FragmentTypecreateFragmentType(String key, Long lastModified, Long contentLength) static FragmentTypecreateFragmentType(String key, ZipEntry entry, InputStream inputStream) static FragmentTypecreateFragmentType(Fragment<?> fragment, Set<FileAndChecksum> fileAndChecksums) static MapTypecreateMapType(String uri, List<Checksum> checksums, BoundingBox boundingBox) static ThemeTypecreateThemeType(String uri, List<Checksum> checksums, String imageUrl) static voidmarshal(CatalogType catalogType, Writer writer) static StringtoXml(CatalogType catalogType) static StringtoXml(DatasourceType datasourceType) static CatalogTypeunmarshal(InputStream in)
-
Constructor Details
-
DataSourcesUtil
public DataSourcesUtil()
-
-
Method Details
-
unmarshal
- Throws:
jakarta.xml.bind.JAXBException
-
asChecksums
-
createThemeType
-
createFragmentType
public static FragmentType createFragmentType(String key, Long lastModified, Long contentLength) throws IOException - Throws:
IOException
-
createFragmentType
public static FragmentType createFragmentType(String key, ZipEntry entry, InputStream inputStream) throws IOException - Throws:
IOException
-
createChecksumType
public static ChecksumType createChecksumType(CompactCalendar lastModified, Long contentLength, String sha1) -
asMetaDataComparablePath
- Throws:
IOException
-