Package com.unitesk.aspectrace.html
Class StaticResource
- java.lang.Object
-
- com.unitesk.aspectrace.ReportEntity
-
- com.unitesk.aspectrace.html.ReportPage
-
- com.unitesk.aspectrace.html.StaticResource
-
public class StaticResource extends ReportPage
Static resource file (e.g. CSS or JS).Overrides methods
hashCode()
andequals(Object)
so that different components may add all necessary resources in their generator: copies would be deleted automatically so there wouldn't be any repeated copying.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GIF_PACKAGE
-
Fields inherited from class com.unitesk.aspectrace.html.ReportPage
DEFAULT_CHARSET
-
-
Constructor Summary
Constructors Constructor Description StaticResource(java.lang.String inPath, java.lang.String outPath)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
copy(java.io.InputStream is, java.io.OutputStream os)
Copy entire contents from one stream to another.boolean
equals(java.lang.Object obj)
void
generate()
Generates complete page text.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class com.unitesk.aspectrace.html.ReportPage
buildRefs, getCharset, getGenerator, getPath, getRelativePath, getRelativePathFrom, getRelativePathFrom, getRelativePathTo, getRelativePathTo, setCharset, setGenerator, setPath
-
Methods inherited from class com.unitesk.aspectrace.ReportEntity
getAspect, getAssociatedChannel, getTagMarks, setAssociatedChannel, setTagMarks
-
-
-
-
Field Detail
-
GIF_PACKAGE
public static final java.lang.String GIF_PACKAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
generate
public void generate() throws java.io.IOException
Description copied from class:ReportPage
Generates complete page text.- Specified by:
generate
in classReportPage
- Throws:
java.io.IOException
- Input-Output error.
-
copy
protected static void copy(java.io.InputStream is, java.io.OutputStream os) throws java.io.IOException
Copy entire contents from one stream to another. Does not close streams.- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-