Package com.soklet.web
Class HashedUrlManifest
java.lang.Object
com.soklet.web.HashedUrlManifest
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionHashedUrlManifest
(InputStream inputStream) HashedUrlManifest
(Path hashedUrlManifestFile) HashedUrlManifest
(Map<String, String> hashedUrlsByUrl) -
Method Summary
Modifier and TypeMethodDescriptionstatic Path
boolean
int
hashCode()
toString()
void
writeToOutputStream
(OutputStream outputStream, HashedUrlManifest.PersistenceFormat persistenceFormat) Serializes this manifest to the givenoutputStream
.
-
Constructor Details
-
HashedUrlManifest
public HashedUrlManifest() -
HashedUrlManifest
-
HashedUrlManifest
-
HashedUrlManifest
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
defaultManifestFile
-
hashedUrlWithFallback
-
hashedUrl
-
writeToOutputStream
public void writeToOutputStream(OutputStream outputStream, HashedUrlManifest.PersistenceFormat persistenceFormat) throws IOException Serializes this manifest to the givenoutputStream
. The inverse of this operation isHashedUrlManifest(InputStream)
.Caller is responsible for flushing and closing the
outputStream
after this method has completed.Note that the serialization format is not formally specified and is subject to change in the future.
- Parameters:
outputStream
- the stream to write topersistenceFormat
- how the manifest should be written to theoutputStream
- Throws:
IOException
- if an error occurs while writing tooutputStream
-
hashedUrlsByUrl
-