---
title: "init(object:owned:messageProc:)"
framework: applearchive
role: symbol
role_heading: Initializer
path: "applearchive/archivestream/init(object:owned:messageproc:)"
---

# init(object:owned:messageProc:)

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

## Declaration

```swift
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.
