Package org.jboss.as.jdr.util
Class JdrZipFile
java.lang.Object
org.jboss.as.jdr.util.JdrZipFile
Abstracts the zipfile used for packaging the JDR Report.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(InputStream is, String path) Adds the contents of theInputStreamto the path in the zip.voidAdds content to the zipfile at path path is prepended with the directory reserved for generated text files in JDRvoidadd(org.jboss.vfs.VirtualFile file, InputStream is) Adds the content of theInputStreamto the zip in a location that mirrors wherefileis located.voidaddAsString(InputStream stream, String path) Adds content to the zipfile at path path is prepended with the directory reserved for generated text files in JDRvoidAdds content to the zipfile in a file named logName path is prepended with the directory reserved for JDR log filesvoidclose()name()
-
Constructor Details
-
JdrZipFile
- Throws:
Exception
-
-
Method Details
-
name
- Returns:
- the full pathname to the zipfile on disk
-
add
Adds the contents of theInputStreamto the path in the zip. This method allows for absolute control of the destination of the content to be stored. It is not common to use this method.- Parameters:
is- content to writepath- destination to write to in the zip file
-
add
Adds the content of theInputStreamto the zip in a location that mirrors wherefileis located. For example iffileis at/tmp/foo/barand$JBOSS_HOMEistmpthen the destination will beJBOSSHOME/foo/bar- Parameters:
file-VirtualFilewhere metadata is read fromis- content to write to the zip file- Throws:
Exception
-
add
Adds content to the zipfile at path path is prepended with the directory reserved for generated text files in JDR- Parameters:
content-path-- Throws:
Exception
-
addAsString
Adds content to the zipfile at path path is prepended with the directory reserved for generated text files in JDR- Parameters:
stream-path-- Throws:
Exception
-
getProductDirName
-
addLog
Adds content to the zipfile in a file named logName path is prepended with the directory reserved for JDR log files- Parameters:
content-logName-- Throws:
Exception
-
close
- Throws:
Exception
-