2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
ICompressionStrategy
public
interface
ICompressionStrategy
com.android.tradefed.util.ICompressionStrategy
|
런타임에 선택할 수 있는 압축 알고리즘을 나타내는 인터페이스입니다.
요약
공개 메서드
compress
public abstract File compress (File source)
source
파일 (또는 폴더)을 압축하고 결과 보관 파일을 반환합니다.
매개변수 |
source |
File : 압축할 파일 또는 디렉터리 |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# ICompressionStrategy\n====================\n\n\n`\npublic\n\n\ninterface\nICompressionStrategy\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------|\n| com.android.tradefed.util.ICompressionStrategy |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [ZipCompressionStrategy](../../../../../../reference/tradefed/com/android/tradefed/util/ZipCompressionStrategy.html) |----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------| | [ZipCompressionStrategy](../../../../../../reference/tradefed/com/android/tradefed/util/ZipCompressionStrategy.html) | An [ICompressionStrategy](../../../../../../reference/tradefed/com/android/tradefed/util/ICompressionStrategy.html) for creating zip archives. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface representing a compression algorithm that can be selected at runtime.\n\nSummary\n-------\n\n| ### Public methods ||\n|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract File` | ` `[compress](../../../../../../reference/tradefed/com/android/tradefed/util/ICompressionStrategy.html#compress(File))`(File source) ` Compresses the `source` file (or folder) and returns the resulting archive. |\n| ` abstract `[LogDataType](../../../../../../reference/tradefed/com/android/tradefed/result/LogDataType.html) | ` `[getLogDataType](../../../../../../reference/tradefed/com/android/tradefed/util/ICompressionStrategy.html#getLogDataType())`() ` Returns the [LogDataType](../../../../../../reference/tradefed/com/android/tradefed/result/LogDataType.html) of the archive format used by this strategy. |\n\nPublic methods\n--------------\n\n### compress\n\n```\npublic abstract File compress (File source)\n```\n\nCompresses the `source` file (or folder) and returns the resulting archive.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|--------------------------------------------------|\n| `source` | `File`: The file or directory to compress \u003cbr /\u003e |\n\n| Returns ||\n|--------|-------------------------------|\n| `File` | The compressed archive \u003cbr /\u003e |\n\n| Throws ||\n|---|-----------------------------------------|\n| | If the operation could not be completed |\n\n### getLogDataType\n\n```\npublic abstract LogDataType getLogDataType ()\n```\n\nReturns the [LogDataType](../../../../../../reference/tradefed/com/android/tradefed/result/LogDataType.html) of the archive format used by this strategy.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------|--------|\n| [LogDataType](../../../../../../reference/tradefed/com/android/tradefed/result/LogDataType.html) | \u003cbr /\u003e |"]]