<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleArchive",
  "identifier" : "/documentation/AppleArchive/ArchiveStream/init(object:owned:messageProc:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Apple Archive"
    ],
    "preciseIdentifier" : "s:12AppleArchive0B6StreamC6object5owned11messageProcACs13OpaquePointerVSg_SbAA0B6HeaderC19_EntryFilterWrapperCSgtcfc"
  },
  "title" : "init(object:owned:messageProc:)"
}
-->

# init(object:owned:messageProc:)

Returns a new archive stream from the specified traits and entry message processing callback.

```
override init(object aaObject: _AAOptionalObjectWrapperWithFilter<_AAArchiveStreamTraits>.AAType?, owned aaObjectOwned: Bool, messageProc filter: ArchiveHeader._EntryFilterWrapper? = nil)
```

## Parameters

`aaObject`

An object wrapper that contains the blob traits.

`aaObjectOwned`

A Boolean value that specifies whether the archive stream owns the traits object.

`filter`

An object wrapper that contains the entry message processing callback.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)